mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Add test with tokenImage as used in JavaCC
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
interface TokenSequenceParserConstants {
|
||||
/** Literal token values. */
|
||||
String[] tokenImage = {
|
||||
"<EOF>",
|
||||
};
|
||||
}
|
||||
|
||||
public class TokenSequenceParserTest implements TokenSequenceParserConstants {
|
||||
void test(String password) {
|
||||
Logger logger = null;
|
||||
|
||||
logger.info("When parsing found this: " + tokenImage[0]); // Safe
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user