Skip to content

Commit

Permalink
fix: Suppress this-escape warning in generated Parser introduced in J…
Browse files Browse the repository at this point in the history
…DK 21.

Signed-off-by: Niels Basjes <niels@basjes.nl>
  • Loading branch information
nielsbasjes authored and parrt committed Feb 23, 2024
1 parent 8127454 commit 851ddee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Parser(parser, funcs, atn, sempredFuncs, superClass) ::= <<
>>

Parser_(parser, funcs, atn, sempredFuncs, ctor, superClass) ::= <<
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue"})
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape"})
public class <parser.name> extends <superClass; null="Parser"> {
static { RuntimeMetaData.checkVersion("<file.ANTLRVersion>", RuntimeMetaData.VERSION); }

Expand Down

0 comments on commit 851ddee

Please sign in to comment.