We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e671ab commit 179c63aCopy full SHA for 179c63a
spring-beans/src/main/java/org/springframework/beans/factory/annotation/ParameterResolutionDelegate.java
@@ -45,18 +45,20 @@
45
*/
46
public final class ParameterResolutionDelegate {
47
48
+ private static final Annotation[] EMPTY_ANNOTATION_ARRAY = new Annotation[0];
49
+
50
private static final AnnotatedElement EMPTY_ANNOTATED_ELEMENT = new AnnotatedElement() {
51
@Override
52
public <T extends Annotation> @Nullable T getAnnotation(Class<T> annotationClass) {
53
return null;
54
}
55
56
public Annotation[] getAnnotations() {
- return new Annotation[0];
57
+ return EMPTY_ANNOTATION_ARRAY;
58
59
60
public Annotation[] getDeclaredAnnotations() {
61
62
63
};
64
0 commit comments