Skip to content

Commit 945db01

Browse files
committed
Address review comments
1 parent b9bc1f9 commit 945db01

File tree

1 file changed

+3
-3
lines changed
  • java/ql/src/semmle/code/java/frameworks

1 file changed

+3
-3
lines changed

java/ql/src/semmle/code/java/frameworks/JaxWS.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ class JaxRsResourceMethod extends Method {
8181
result = this.getAnAnnotation()
8282
or
8383
// No direct annotations
84-
not exists(this.getAnAnnotation().(JaxRSProducesAnnotation)) and
84+
not this.getAnAnnotation() instanceof JaxRSProducesAnnotation and
8585
(
8686
// Annotations on a method we've overridden
8787
result = this.getAnOverride().getAnAnnotation()
8888
or
8989
// No annotations on this method, or a method we've overridden, so look to the class
90-
not exists(this.getAnOverride().getAnAnnotation().(JaxRSProducesAnnotation)) and
90+
not this.getAnOverride().getAnAnnotation() instanceof JaxRSProducesAnnotation and
9191
result = this.getDeclaringType().getAnAnnotation()
9292
)
9393
}
@@ -267,7 +267,7 @@ class MessageBodyReader extends GenericInterface {
267267
*/
268268
class MessageBodyReaderReadFrom extends Method {
269269
MessageBodyReaderReadFrom() {
270-
this.getDeclaringType().(RefType).getSourceDeclaration() instanceof MessageBodyReader and
270+
this.getDeclaringType().getSourceDeclaration() instanceof MessageBodyReader and
271271
this.hasName("readFrom")
272272
}
273273
}

0 commit comments

Comments
 (0)