Suppress "cast" warnings in generated code

This commit is contained in:
sharwell 2012-02-08 19:14:25 -06:00
parent 4f3e40f0d3
commit 33c8f9b2d6
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ Parser(parser, funcs, atn, sempredFuncs, superclass) ::= <<
>>
Parser_(parser, funcs, atn, sempredFuncs, ctor, extras, superclass) ::= <<
@SuppressWarnings({"all", "warnings", "unchecked", "unused"})
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class <parser.name> extends <superclass> {
<if(parser.tokens)>
public static final int
@ -597,7 +597,7 @@ import org.antlr.v4.runtime.misc.*;
>>
Lexer(lexer, atn, actionFuncs, sempredFuncs) ::= <<
@SuppressWarnings({"all", "warnings", "unchecked", "unused"})
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class <lexer.name> extends Lexer {
public static final int
<lexer.tokens:{k | <k>=<lexer.tokens.(k)>}; separator=", ", wrap, anchor>;