File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
java/ql/src/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,21 @@ abstract class ParserConfig extends MethodAccess {
36
36
*/
37
37
predicate disables ( Expr e ) {
38
38
this .getArgument ( 0 ) = e and
39
- this .getArgument ( 1 ) .( BooleanLiteral ) .getBooleanValue ( ) = false
39
+ (
40
+ this .getArgument ( 1 ) .( BooleanLiteral ) .getBooleanValue ( ) = false or
41
+ this .getArgument ( 1 ) .( FieldAccess ) .getField ( ) .hasQualifiedName ( "java.lang" , "Boolean" , "FALSE" )
42
+ )
40
43
}
41
44
42
45
/**
43
46
* Holds if the method enables a property.
44
47
*/
45
48
predicate enables ( Expr e ) {
46
49
this .getArgument ( 0 ) = e and
47
- this .getArgument ( 1 ) .( BooleanLiteral ) .getBooleanValue ( ) = true
50
+ (
51
+ this .getArgument ( 1 ) .( BooleanLiteral ) .getBooleanValue ( ) = true or
52
+ this .getArgument ( 1 ) .( FieldAccess ) .getField ( ) .hasQualifiedName ( "java.lang" , "Boolean" , "TRUE" )
53
+ )
48
54
}
49
55
}
50
56
You can’t perform that action at this time.
0 commit comments