File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
java/ql/src/semmle/code/java/frameworks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 */
268268class 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}
You can’t perform that action at this time.
0 commit comments