diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg index 17912ebb7..28e3f69a0 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg @@ -123,8 +123,7 @@ public abstract class extend =}; separator=", ", wrap, anchor>; public static final String[] tokenNames = { - "\", - }; null="null", separator=", ", wrap, anchor> + }; null="\"\\"", separator=", ", wrap, anchor> }; public static final int = }; separator=", ", wrap, anchor>;