Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Search for the class definition in the template, and just add the bold @SuppressWarnings stuff:

No Format
lexer(grammar, name, tokens, scopes, rules, numRules, labelType="Token",
      filterMode) ::= <<
@SuppressWarnings("all")
public class <name> extends Lexer {
(...)
No Format
genericParser(grammar, name, scopes, tokens, tokenNames, rules, numRules,
              bitsets, inputStreamType, superClass,
              ASTLabelType="Object", labelType, members) ::= <<
@SuppressWarnings("all")             
public class <name> extends <@superClassName><superClass><@end>
(...) 

Remeber this only works when your parser will run with a JDK > 5.0