mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Address review comments
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user