Skip to content
Snippets Groups Projects
Commit 1c500ed2 authored by dgelessus's avatar dgelessus
Browse files

Rename another generated Lexer local variable that shadows a field

parent f618d67a
No related branches found
No related tags found
No related merge requests found
...@@ -410,14 +410,14 @@ public class Lexer ...@@ -410,14 +410,14 @@ public class Lexer
@Deprecated @Deprecated
protected void unread(Token tok) throws IOException protected void unread(Token tok) throws IOException
{ {
String text = tok.getText(); String tokenText = tok.getText();
int length = text.length(); int length = tokenText.length();
for(int i = length - 1; i >= 0; i--) for(int i = length - 1; i >= 0; i--)
{ {
this.eof = false; this.eof = false;
this.in.unread(text.charAt(i)); this.in.unread(tokenText.charAt(i));
} }
this.pos = tok.getPos() - 1; this.pos = tok.getPos() - 1;
......
...@@ -299,14 +299,14 @@ Macro:LexerBody ...@@ -299,14 +299,14 @@ Macro:LexerBody
@Deprecated @Deprecated
protected void unread(Token tok) throws IOException protected void unread(Token tok) throws IOException
{ {
String text = tok.getText(); String tokenText = tok.getText();
int length = text.length(); int length = tokenText.length();
for(int i = length - 1; i >= 0; i--) for(int i = length - 1; i >= 0; i--)
{ {
this.eof = false; this.eof = false;
this.in.unread(text.charAt(i)); this.in.unread(tokenText.charAt(i));
} }
this.pos = tok.getPos() - 1; this.pos = tok.getPos() - 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment