Skip to content

Commit 63a04c0

Browse files
committed
Add test with tokenImage as used in JavaCC
1 parent b8608a1 commit 63a04c0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)