v4: Add <?> to generic instance

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9488]
This commit is contained in:
sharwell 2011-11-29 19:31:25 -08:00
parent 99cf07cc3c
commit 07bbf42f8b
1 changed files with 1 additions and 1 deletions

View File

@ -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;