diff options
Diffstat (limited to 'runtime/Java/src/org/antlr/v4/runtime/dfa/LexerDFASerializer.java')
-rw-r--r-- | runtime/Java/src/org/antlr/v4/runtime/dfa/LexerDFASerializer.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/Java/src/org/antlr/v4/runtime/dfa/LexerDFASerializer.java b/runtime/Java/src/org/antlr/v4/runtime/dfa/LexerDFASerializer.java index d1d0cca..83d4f8c 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/dfa/LexerDFASerializer.java +++ b/runtime/Java/src/org/antlr/v4/runtime/dfa/LexerDFASerializer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2016 The ANTLR Project. All rights reserved. + * Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ @@ -16,6 +16,9 @@ public class LexerDFASerializer extends DFASerializer { @Override protected String getEdgeLabel(int i) { - return "'"+(char)i+"'"; + return new StringBuilder("'") + .appendCodePoint(i) + .append("'") + .toString(); } } |