@@ -21,7 +21,7 @@ class State {
2121 public final Liblkqllang .AnalysisUnit unit ;
2222
2323 /** Kind of actions that can be attached to a token. */
24- enum actionKind {
24+ enum ActionKind {
2525 APPEND ,
2626 PREPEND ,
2727 REPLACE ,
@@ -34,7 +34,7 @@ enum actionKind {
3434 *
3535 * <p>To remove a token, simply use a REPLACE action with an empty text.
3636 */
37- record Action (actionKind kind , String text ) {}
37+ record Action (ActionKind kind , String text ) {}
3838
3939 /**
4040 * List of actions accumulated in this state object.
@@ -60,19 +60,19 @@ public void addAction(Liblkqllang.Token token, Action action) {
6060 }
6161
6262 public void delete (Liblkqllang .Token token ) {
63- addAction (token , new Action (actionKind .REPLACE , "" ));
63+ addAction (token , new Action (ActionKind .REPLACE , "" ));
6464 }
6565
6666 public void replace (Liblkqllang .Token token , String text ) {
67- addAction (token , new Action (actionKind .REPLACE , text ));
67+ addAction (token , new Action (ActionKind .REPLACE , text ));
6868 }
6969
7070 public void append (Liblkqllang .Token token , String text ) {
71- addAction (token , new Action (actionKind .APPEND , text ));
71+ addAction (token , new Action (ActionKind .APPEND , text ));
7272 }
7373
7474 public void prepend (Liblkqllang .Token token , String text ) {
75- addAction (token , new Action (actionKind .PREPEND , text ));
75+ addAction (token , new Action (ActionKind .PREPEND , text ));
7676 }
7777
7878 /**
@@ -85,18 +85,18 @@ private void printAllTokens(Consumer<String> write) {
8585 if (tokActions != null ) {
8686 var replaceActions = tokActions
8787 .stream ()
88- .filter (c -> c .kind == actionKind .REPLACE )
88+ .filter (c -> c .kind == ActionKind .REPLACE )
8989 .toList ();
9090 assert replaceActions .size () <= 1 : "Only one replace action per token" ;
9191
9292 var prependActions = tokActions
9393 .stream ()
94- .filter (c -> c .kind == actionKind .PREPEND )
94+ .filter (c -> c .kind == ActionKind .PREPEND )
9595 .toList ();
9696
9797 var appendActions = tokActions
9898 .stream ()
99- .filter (c -> c .kind == actionKind .APPEND )
99+ .filter (c -> c .kind == ActionKind .APPEND )
100100 .toList ();
101101
102102 for (var action : prependActions ) {
0 commit comments