HandlerMethod skips interface parameter introspection for return value
Fixes #22303
This commit is contained in:
parent
493e9c1ff0
commit
7cc700435b
|
|
@ -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…
Reference in New Issue