Skip to content

Commit 0b4f7f2

Browse files
committed
Remove obsolete code
The hasNullableAnnotation() method was made obsolete in commit b5d153f. See gh-34952 See gh-34261
1 parent 799a376 commit 0b4f7f2

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/config/DependencyDescriptor.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import java.io.IOException;
2020
import java.io.ObjectInputStream;
2121
import java.io.Serializable;
22-
import java.lang.annotation.Annotation;
2322
import java.lang.reflect.Field;
2423
import java.util.Map;
2524
import java.util.Optional;
@@ -167,20 +166,6 @@ public boolean isRequired() {
167166
}
168167
}
169168

170-
/**
171-
* Check whether the underlying field is annotated with any variant of a
172-
* {@code Nullable} annotation, for example, {@code jakarta.annotation.Nullable} or
173-
* {@code edu.umd.cs.findbugs.annotations.Nullable}.
174-
*/
175-
private boolean hasNullableAnnotation() {
176-
for (Annotation ann : getAnnotations()) {
177-
if ("Nullable".equals(ann.annotationType().getSimpleName())) {
178-
return true;
179-
}
180-
}
181-
return false;
182-
}
183-
184169
/**
185170
* Return whether this dependency is 'eager' in the sense of
186171
* eagerly resolving potential target beans for type matching.

0 commit comments

Comments
 (0)