forked from jasder/antlr
v4: Add <?> to generic instance
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9488]
This commit is contained in:
parent
99cf07cc3c
commit
07bbf42f8b
|
@ -83,7 +83,7 @@ public class RecognitionException extends RuntimeException {
|
|||
|
||||
public IntervalSet getExpectedTokens() {
|
||||
// TODO: do we really need this type check?
|
||||
if ( recognizer!=null && recognizer instanceof BaseRecognizer) {
|
||||
if ( recognizer!=null && recognizer instanceof BaseRecognizer<?> ) {
|
||||
return recognizer.getInterpreter().atn.nextTokens(ctx);
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue