Skip to content

Commit

Permalink
fix: suppress more "this-escape" warnings from JDK 21
Browse files Browse the repository at this point in the history
This is a followup to 851ddee and PR #4486. Parser constructor needs a similar pragma.

Signed-off-by: combolek <[email protected]>
  • Loading branch information
combolek committed May 14, 2024
1 parent 380ce4b commit 2b006a2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ case <f.ruleIndex>:
>>

parser_ctor(p) ::= <<
@SuppressWarnings("this-escape")
public <p.name>(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
Expand Down

0 comments on commit 2b006a2

Please sign in to comment.