Address review comments

This commit is contained in:
Owen Mansel-Chan
2021-06-17 10:29:33 +01:00
parent b9bc1f978c
commit 945db01f56

View File

@@ -81,13 +81,13 @@ class JaxRsResourceMethod extends Method {
result = this.getAnAnnotation() result = this.getAnAnnotation()
or or
// No direct annotations // No direct annotations
not exists(this.getAnAnnotation().(JaxRSProducesAnnotation)) and not this.getAnAnnotation() instanceof JaxRSProducesAnnotation and
( (
// Annotations on a method we've overridden // Annotations on a method we've overridden
result = this.getAnOverride().getAnAnnotation() result = this.getAnOverride().getAnAnnotation()
or or
// No annotations on this method, or a method we've overridden, so look to the class // No annotations on this method, or a method we've overridden, so look to the class
not exists(this.getAnOverride().getAnAnnotation().(JaxRSProducesAnnotation)) and not this.getAnOverride().getAnAnnotation() instanceof JaxRSProducesAnnotation and
result = this.getDeclaringType().getAnAnnotation() result = this.getDeclaringType().getAnAnnotation()
) )
} }
@@ -267,7 +267,7 @@ class MessageBodyReader extends GenericInterface {
*/ */
class MessageBodyReaderReadFrom extends Method { class MessageBodyReaderReadFrom extends Method {
MessageBodyReaderReadFrom() { MessageBodyReaderReadFrom() {
this.getDeclaringType().(RefType).getSourceDeclaration() instanceof MessageBodyReader and this.getDeclaringType().getSourceDeclaration() instanceof MessageBodyReader and
this.hasName("readFrom") this.hasName("readFrom")
} }
} }