Skip to content

Commit 573908d

Browse files
Improve variable naming in action templates test suite
Signed-off-by: David Gregory <[email protected]>
1 parent b28a9f4 commit 573908d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tool-testsuite/test/org/antlr/v4/test/tool/TestActionTemplates.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class TestActionTemplates {
8080
}
8181

8282
@Test void testActionTemplateHeader(@TempDir Path tempDir) {
83-
String sb =
83+
String actionTemplates =
8484
"normalizerImports() ::= <<\n" +
8585
"import java.text.Normalizer;\n" +
8686
"import java.text.Normalizer.Form;\n" +
@@ -89,9 +89,9 @@ public class TestActionTemplates {
8989
"getText() ::= <<getText()>>\n" +
9090
"setText(s) ::= <<setText(<s>);>>";
9191

92-
writeActionTemplatesFile(tempDir, sb);
92+
writeActionTemplatesFile(tempDir, actionTemplates);
9393

94-
String actionTemplates = tempDir + FileSeparator + "Java.stg";
94+
String actionTemplatesFile = tempDir + FileSeparator + "Java.stg";
9595

9696
String grammar =
9797
"lexer grammar L;\n"+
@@ -103,7 +103,7 @@ public class TestActionTemplates {
103103
"ID_CONTINUE: [\\p{XID_Continue}] ;\n"+
104104
"WS : (' '|'\\n') -> skip ;";
105105

106-
State state = execLexer(grammar, "This _is \ufb01ne", tempDir, actionTemplates);
106+
State state = execLexer(grammar, "This _is \ufb01ne", tempDir, actionTemplatesFile);
107107

108108
String expecting =
109109
"[@0,0:3='This',<1>,1:0]\n"+

0 commit comments

Comments
 (0)