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
66import semmle.code.java.dataflow.DataFlow
77import 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
You can’t perform that action at this time.
0 commit comments