@@ -80,7 +80,7 @@ public class TestActionTemplates {
80
80
}
81
81
82
82
@ Test void testActionTemplateHeader (@ TempDir Path tempDir ) {
83
- String sb =
83
+ String actionTemplates =
84
84
"normalizerImports() ::= <<\n " +
85
85
"import java.text.Normalizer;\n " +
86
86
"import java.text.Normalizer.Form;\n " +
@@ -89,9 +89,9 @@ public class TestActionTemplates {
89
89
"getText() ::= <<getText()>>\n " +
90
90
"setText(s) ::= <<setText(<s>);>>" ;
91
91
92
- writeActionTemplatesFile (tempDir , sb );
92
+ writeActionTemplatesFile (tempDir , actionTemplates );
93
93
94
- String actionTemplates = tempDir + FileSeparator + "Java.stg" ;
94
+ String actionTemplatesFile = tempDir + FileSeparator + "Java.stg" ;
95
95
96
96
String grammar =
97
97
"lexer grammar L;\n " +
@@ -103,7 +103,7 @@ public class TestActionTemplates {
103
103
"ID_CONTINUE: [\\ p{XID_Continue}] ;\n " +
104
104
"WS : (' '|'\\ n') -> skip ;" ;
105
105
106
- State state = execLexer (grammar , "This _is \ufb01 ne" , tempDir , actionTemplates );
106
+ State state = execLexer (grammar , "This _is \ufb01 ne" , tempDir , actionTemplatesFile );
107
107
108
108
String expecting =
109
109
"[@0,0:3='This',<1>,1:0]\n " +
0 commit comments