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 19
19
import java .io .IOException ;
20
20
import java .io .ObjectInputStream ;
21
21
import java .io .Serializable ;
22
- import java .lang .annotation .Annotation ;
23
22
import java .lang .reflect .Field ;
24
23
import java .util .Map ;
25
24
import java .util .Optional ;
@@ -167,20 +166,6 @@ public boolean isRequired() {
167
166
}
168
167
}
169
168
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
-
184
169
/**
185
170
* Return whether this dependency is 'eager' in the sense of
186
171
* eagerly resolving potential target beans for type matching.
You can’t perform that action at this time.
0 commit comments