Skip to content

Commit 04b5648

Browse files
mbelladesebersole
authored andcommitted
#63 - Remove more unneeded AnnotationTargets
1 parent 06058d8 commit 04b5648

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/main/java/org/hibernate/models/internal/AbstractTypeDescriptor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import java.util.Locale;
1010

1111
import org.hibernate.models.spi.AnnotationDescriptor;
12-
import org.hibernate.models.spi.AnnotationTarget;
1312
import org.hibernate.models.spi.AttributeDescriptor;
1413
import org.hibernate.models.spi.SourceModelBuildingContext;
1514
import org.hibernate.models.spi.ValueTypeDescriptor;
@@ -31,7 +30,6 @@ public AttributeDescriptor<V> createAttributeDescriptor(
3130
@Override
3231
public V createValue(
3332
AttributeDescriptor<?> attributeDescriptor,
34-
AnnotationTarget target,
3533
SourceModelBuildingContext context) {
3634
final Object defaultValue = attributeDescriptor.getAttributeMethod().getDefaultValue();
3735
if ( defaultValue == null ) {

src/main/java/org/hibernate/models/internal/ArrayTypeDescriptor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import org.hibernate.models.internal.jandex.ArrayValueWrapper;
1616
import org.hibernate.models.internal.util.CollectionHelper;
1717
import org.hibernate.models.spi.AnnotationDescriptor;
18-
import org.hibernate.models.spi.AnnotationTarget;
1918
import org.hibernate.models.spi.AttributeDescriptor;
2019
import org.hibernate.models.spi.SourceModelBuildingContext;
2120
import org.hibernate.models.spi.ValueExtractor;
@@ -55,7 +54,6 @@ public Class<List<V>> getWrappedValueType() {
5554
@Override
5655
public List<V> createValue(
5756
AttributeDescriptor<?> attributeDescriptor,
58-
AnnotationTarget target,
5957
SourceModelBuildingContext context) {
6058
final Object[] defaultValue = (Object[]) attributeDescriptor.getAttributeMethod().getDefaultValue();
6159
if ( CollectionHelper.isEmpty( defaultValue ) ) {

src/main/java/org/hibernate/models/spi/ValueTypeDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public interface ValueTypeDescriptor<V> {
2626
/**
2727
* Creates a properly typed default attribute value. Generally used in creating dynamic annotations.
2828
*/
29-
V createValue(AttributeDescriptor<?> attributeDescriptor, AnnotationTarget target, SourceModelBuildingContext context);
29+
V createValue(AttributeDescriptor<?> attributeDescriptor, SourceModelBuildingContext context);
3030

3131
/**
3232
* Factory for creating typed {@linkplain AttributeDescriptor} references

0 commit comments

Comments
 (0)