Merge pull request #1046 from abego/extraNullCheckInTestRig

Extra 'null' check in TestRig#process
This commit is contained in:
Terence Parr 2015-11-25 09:04:43 -08:00
commit 36d8d41def
1 changed files with 0 additions and 3 deletions

View File

@ -172,9 +172,6 @@ public class TestRig {
if ( !startRuleName.equals(LEXER_START_RULE_NAME) ) {
String parserName = grammarName+"Parser";
parserClass = cl.loadClass(parserName).asSubclass(Parser.class);
if ( parserClass==null ) {
System.err.println("Can't load "+parserName);
}
Constructor<? extends Parser> parserCtor = parserClass.getConstructor(TokenStream.class);
parser = parserCtor.newInstance((TokenStream)null);
}