Skip to content

Commit 94e9848

Browse files
authored
Mention needed imports at top of "Analyzing data flow in Java"
Currently the guide just starts using the classes from these libraries without having mentioned that you have to import the libraries first.
1 parent 44f23bf commit 94e9848

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/codeql/codeql-language-guides/analyzing-data-flow-in-java.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ The following sections describe how to use the libraries for local data flow, gl
1717

1818
For a more general introduction to modeling data flow, see ":ref:`About data flow analysis <about-data-flow-analysis>`."
1919

20+
For data flow you need the following import:
21+
22+
.. code-block:: ql
23+
24+
import semmle.code.java.dataflow.DataFlow
25+
26+
For taint tracking you need this import:
27+
28+
.. code-block:: ql
29+
30+
import semmle.code.java.dataflow.TaintTracking
31+
2032
Local data flow
2133
---------------
2234

@@ -368,4 +380,4 @@ Further reading
368380

369381

370382
.. include:: ../reusables/java-further-reading.rst
371-
.. include:: ../reusables/codeql-ref-tools-further-reading.rst
383+
.. include:: ../reusables/codeql-ref-tools-further-reading.rst

0 commit comments

Comments
 (0)