rm type param

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9462]
This commit is contained in:
parrt 2011-11-25 18:16:46 -08:00
parent fe1691da78
commit 30d89abc4a
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ package org.antlr.v4.runtime;
/** Bail out of parser at first syntax error. Do this to use it:
* myparser.setErrorHandler(new BailErrorStrategy<Token>());
*/
public class BailErrorStrategy<Symbol> extends DefaultErrorStrategy<Symbol> {
public class BailErrorStrategy extends DefaultErrorStrategy<Token> {
/** Instead of recovering from exception e, Re-throw wrote it wrapped
* in a generic RuntimeException so it is not caught by the
* rule function catches. Exception e is the "cause" of the
@ -47,7 +47,7 @@ public class BailErrorStrategy<Symbol> extends DefaultErrorStrategy<Symbol> {
* successfully recovers, it won't throw an exception.
*/
@Override
public Symbol recoverInline(BaseRecognizer recognizer)
public Token recoverInline(BaseRecognizer recognizer)
throws RecognitionException
{
throw new RuntimeException(new InputMismatchException(recognizer));