File tree Expand file tree Collapse file tree
java/ql/src/semmle/code/java/frameworks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ class JsonIoReadObjectMethod extends Method {
3333/**
3434 * A call to `Map.put` method, set the value of the `USE_MAPS` key to `true`.
3535 */
36- class JsonIoSafeOptionalArgs extends MethodAccess {
37- JsonIoSafeOptionalArgs ( ) {
36+ class JsonIoUseMapsSetter extends MethodAccess {
37+ JsonIoUseMapsSetter ( ) {
3838 this .getMethod ( ) .getDeclaringType ( ) .getASourceSupertype * ( ) instanceof MapType and
3939 this .getMethod ( ) .hasName ( "put" ) and
4040 this .getArgument ( 0 ) .( CompileTimeConstantExpr ) .getStringValue ( ) = "USE_MAPS" and
@@ -48,7 +48,7 @@ class SafeJsonIoConfig extends DataFlow2::Configuration {
4848
4949 override predicate isSource ( DataFlow:: Node src ) {
5050 exists ( MethodAccess ma |
51- ma instanceof JsonIoSafeOptionalArgs and
51+ ma instanceof JsonIoUseMapsSetter and
5252 src .asExpr ( ) = ma .getQualifier ( )
5353 )
5454 }
You can’t perform that action at this time.
0 commit comments