ArneLimburg commented on code in PR #141:
URL: https://github.com/apache/johnzon/pull/141#discussion_r3520330086
##########
johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JsonbAccessMode.java:
##########
@@ -1051,7 +1051,11 @@ private static <T extends Annotation> T
getAnnotation(final Parameter param, fin
if (annotation != null) {
return annotation;
}
- return Meta.findMeta(param.getAnnotations(), api);
+ final T metaAnnotation = Meta.findMeta(param.getAnnotations(), api);
+ if (metaAnnotation != null) {
+ return metaAnnotation;
+ }
+ return Meta.getAnnotation(param.getType(), api);
Review Comment:
Note that the getAnnotation(parameter) is private and just used at that
location where the bug is.
So do you mean, I should just rename getAnnotation(...) to
getAnnotationOnParameterOrParameterType(...) ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]