modified so that when the descriptor represents a method parameter, we retrieve the annotations from the method and not the method parameter (seems to make more sense - certainly in the binding case)
This commit is contained in:
parent
ac9e42fa29
commit
1e0207cf04
|
|
@ -189,7 +189,7 @@ public class TypeDescriptor<T> {
|
||||||
}
|
}
|
||||||
return cachedFieldAnnotations;
|
return cachedFieldAnnotations;
|
||||||
} else if (methodParameter != null) {
|
} else if (methodParameter != null) {
|
||||||
return methodParameter.getParameterAnnotations();
|
return methodParameter.getMethod().getAnnotations();
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue