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 {
81
81
result = this .getAnAnnotation ( )
82
82
or
83
83
// No direct annotations
84
- not exists ( this .getAnAnnotation ( ) . ( JaxRSProducesAnnotation ) ) and
84
+ not this .getAnAnnotation ( ) instanceof JaxRSProducesAnnotation and
85
85
(
86
86
// Annotations on a method we've overridden
87
87
result = this .getAnOverride ( ) .getAnAnnotation ( )
88
88
or
89
89
// 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
91
91
result = this .getDeclaringType ( ) .getAnAnnotation ( )
92
92
)
93
93
}
@@ -267,7 +267,7 @@ class MessageBodyReader extends GenericInterface {
267
267
*/
268
268
class MessageBodyReaderReadFrom extends Method {
269
269
MessageBodyReaderReadFrom ( ) {
270
- this .getDeclaringType ( ) .( RefType ) . getSourceDeclaration ( ) instanceof MessageBodyReader and
270
+ this .getDeclaringType ( ) .getSourceDeclaration ( ) instanceof MessageBodyReader and
271
271
this .hasName ( "readFrom" )
272
272
}
273
273
}
You can’t perform that action at this time.
0 commit comments