We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tokenImage
1 parent b8608a1 commit 63a04c0Copy full SHA for 63a04c0
java/ql/test/query-tests/security/CWE-532/TokenSequenceParserTest.java
@@ -0,0 +1,17 @@
1
+import org.apache.logging.log4j.Logger;
2
+
3
+interface TokenSequenceParserConstants {
4
+ /** Literal token values. */
5
+ String[] tokenImage = {
6
+ "<EOF>",
7
+ };
8
+}
9
10
+public class TokenSequenceParserTest implements TokenSequenceParserConstants {
11
+ void test(String password) {
12
+ Logger logger = null;
13
14
+ logger.info("When parsing found this: " + tokenImage[0]); // Safe
15
+ }
16
17
0 commit comments