Skip to content

Commit 6429fe4

Browse files
authored
Merge pull request github#3862 from shati-patel/shati-patel-patch-1
Small terminology update
2 parents 20aed81 + 5af5f40 commit 6429fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/language/learn-ql/java/call-graph.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ A further special case is non-public default constructors: in the singleton patt
144144
145145
➤ `See this in the query console on LGTM.com <https://lgtm.com/query/673060008/>`__. This change has a large effect on the results for some projects but little effect on the results for others. Use of this pattern varies widely between different projects.
146146

147-
Finally, on many Java projects there are methods that are invoked indirectly by reflection. So, while there are no calls invoking these methods, they are, in fact, used. It is in general very hard to identify such methods. A very common special case, however, is JUnit test methods, which are reflectively invoked by a test runner. The QL Java library has support for recognizing test classes of JUnit and other testing frameworks, which we can employ to filter out methods defined in such classes:
147+
Finally, on many Java projects there are methods that are invoked indirectly by reflection. So, while there are no calls invoking these methods, they are, in fact, used. It is in general very hard to identify such methods. A very common special case, however, is JUnit test methods, which are reflectively invoked by a test runner. The CodeQL library for Java has support for recognizing test classes of JUnit and other testing frameworks, which we can employ to filter out methods defined in such classes:
148148

149149
.. code-block:: ql
150150

0 commit comments

Comments
 (0)