File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/config Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1919import java .io .IOException ;
2020import java .io .ObjectInputStream ;
2121import java .io .Serializable ;
22- import java .lang .annotation .Annotation ;
2322import java .lang .reflect .Field ;
2423import java .util .Map ;
2524import 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.
You can’t perform that action at this time.
0 commit comments