Skip to content

Commit 5b7c150

Browse files
authored
Merge pull request #2813 from p-/fix-doc-java-dataflow
Doc: fix sample query in Java data flow documentation
2 parents 5269fb7 + ddbec74 commit 5b7c150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/language/learn-ql/java/dataflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Then we can make the source more specific, for example an access to a public par
113113
where
114114
fileReader.getDeclaringType().hasQualifiedName("java.io", "FileReader") and
115115
call.getCallee() = fileReader and
116-
DataFlow::localFlow(DataFlow::parameterNode(p), DataFlow::exprNode(fc.getArgument(0)))
116+
DataFlow::localFlow(DataFlow::parameterNode(p), DataFlow::exprNode(call.getArgument(0)))
117117
select p
118118
119119
The following example finds calls to formatting functions where the format string is not hard-coded.

0 commit comments

Comments
 (0)