File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
java/ql/test/library-tests/dataflow/deduplicate-path-graph Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import java
6
6
import semmle.code.java.dataflow.DataFlow
7
7
import DataFlow
8
8
9
- MethodAccess propagateCall ( string state ) {
9
+ MethodCall propagateCall ( string state ) {
10
10
result .getMethod ( ) .getName ( ) = "propagateState" and
11
11
state = result .getArgument ( 1 ) .( StringLiteral ) .getValue ( )
12
12
}
@@ -15,16 +15,16 @@ module TestConfig implements StateConfigSig {
15
15
class FlowState = string ;
16
16
17
17
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" ]
19
19
}
20
20
21
21
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
23
23
state = [ "A" , "B" ]
24
24
}
25
25
26
26
predicate isAdditionalFlowStep ( Node node1 , FlowState state1 , Node node2 , FlowState state2 ) {
27
- exists ( MethodAccess call |
27
+ exists ( MethodCall call |
28
28
call = propagateCall ( state1 ) and
29
29
state2 = state1 and
30
30
node1 .asExpr ( ) = call .getArgument ( 0 ) and
You can’t perform that action at this time.
0 commit comments