HandlerMethod skips interface parameter introspection for return value

Fixes #22303
master
Juergen Hoeller 6 years ago
parent 493e9c1ff0
commit 7cc700435b
  1. 4
      spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java

@ -480,8 +480,9 @@ public class HandlerMethod {
Annotation[] anns = this.combinedAnnotations;
if (anns == null) {
anns = super.getParameterAnnotations();
for (Annotation[][] ifcAnns : getInterfaceParameterAnnotations()) {
int index = getParameterIndex();
if (index >= 0) {
for (Annotation[][] ifcAnns : getInterfaceParameterAnnotations()) {
if (index < ifcAnns.length) {
Annotation[] paramAnns = ifcAnns[index];
if (paramAnns.length > 0) {
@ -503,6 +504,7 @@ public class HandlerMethod {
}
}
}
}
this.combinedAnnotations = anns;
}
return anns;

Loading…
Cancel
Save