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 @@ -33,8 +33,8 @@ class JsonIoReadObjectMethod extends Method {
33
33
/**
34
34
* A call to `Map.put` method, set the value of the `USE_MAPS` key to `true`.
35
35
*/
36
- class JsonIoSafeOptionalArgs extends MethodAccess {
37
- JsonIoSafeOptionalArgs ( ) {
36
+ class JsonIoUseMapsSetter extends MethodAccess {
37
+ JsonIoUseMapsSetter ( ) {
38
38
this .getMethod ( ) .getDeclaringType ( ) .getASourceSupertype * ( ) instanceof MapType and
39
39
this .getMethod ( ) .hasName ( "put" ) and
40
40
this .getArgument ( 0 ) .( CompileTimeConstantExpr ) .getStringValue ( ) = "USE_MAPS" and
@@ -48,7 +48,7 @@ class SafeJsonIoConfig extends DataFlow2::Configuration {
48
48
49
49
override predicate isSource ( DataFlow:: Node src ) {
50
50
exists ( MethodAccess ma |
51
- ma instanceof JsonIoSafeOptionalArgs and
51
+ ma instanceof JsonIoUseMapsSetter and
52
52
src .asExpr ( ) = ma .getQualifier ( )
53
53
)
54
54
}
You can’t perform that action at this time.
0 commit comments