Skip to content

Commit 7363888

Browse files
committed
Java: MethodAccess -> MethodCall
1 parent f9c0ba3 commit 7363888

File tree

1 file changed

+4
-4
lines changed
  • java/ql/test/library-tests/dataflow/deduplicate-path-graph

1 file changed

+4
-4
lines changed

java/ql/test/library-tests/dataflow/deduplicate-path-graph/test.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import java
66
import semmle.code.java.dataflow.DataFlow
77
import DataFlow
88

9-
MethodAccess propagateCall(string state) {
9+
MethodCall propagateCall(string state) {
1010
result.getMethod().getName() = "propagateState" and
1111
state = result.getArgument(1).(StringLiteral).getValue()
1212
}
@@ -15,16 +15,16 @@ module TestConfig implements StateConfigSig {
1515
class FlowState = string;
1616

1717
predicate isSource(Node n, FlowState state) {
18-
n.asExpr().(MethodAccess).getMethod().getName() = "source" and state = ["A", "B"]
18+
n.asExpr().(MethodCall).getMethod().getName() = "source" and state = ["A", "B"]
1919
}
2020

2121
predicate isSink(Node n, FlowState state) {
22-
n.asExpr() = any(MethodAccess acc | acc.getMethod().getName() = "sink").getAnArgument() and
22+
n.asExpr() = any(MethodCall acc | acc.getMethod().getName() = "sink").getAnArgument() and
2323
state = ["A", "B"]
2424
}
2525

2626
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
27-
exists(MethodAccess call |
27+
exists(MethodCall call |
2828
call = propagateCall(state1) and
2929
state2 = state1 and
3030
node1.asExpr() = call.getArgument(0) and

0 commit comments

Comments
 (0)