Add test for ParseException use of tokenImage

This commit is contained in:
Owen Mansel-Chan
2024-03-23 23:48:16 +00:00
parent 4832dc51ed
commit f4b3bae88b

View File

@@ -15,3 +15,13 @@ public class TokenSequenceParserTest implements TokenSequenceParserConstants {
} }
} }
class ParseExceptionTest extends Exception {
String[] tokenImage;
void test() {
Logger logger = null;
logger.info("When parsing found this: " + tokenImage[0]); // Safe
}
}