Skip to content

Commit 689c28a

Browse files
committed
modified JsonIoSafeOptionalArgs
1 parent 95c33a2 commit 689c28a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/ql/src/semmle/code/java/frameworks/JsonIo.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)