forked from jasder/antlr
rm type param
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9462]
This commit is contained in:
parent
fe1691da78
commit
30d89abc4a
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue