diff options
author | Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> | 2019-02-20 10:50:34 +0100 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2019-02-20 10:50:34 +0100 |
commit | 46a69da8a80acd74fcc62f3d1a0fb2ddf06bd236 (patch) | |
tree | 7013438e777f4ad083b9b866f8fa3373cab2bb0b | |
parent | b084f7973a421ba115bd9f7bbbbfb40f347bd4dd (diff) |
fix-unicodedata.st
Gbp-Pq: Name fix-unicodedata.st.patch
-rw-r--r-- | tool/resources/org/antlr/v4/tool/templates/unicodedata.st | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/resources/org/antlr/v4/tool/templates/unicodedata.st b/tool/resources/org/antlr/v4/tool/templates/unicodedata.st index 0f22c73..a8c1f8d 100644 --- a/tool/resources/org/antlr/v4/tool/templates/unicodedata.st +++ b/tool/resources/org/antlr/v4/tool/templates/unicodedata.st @@ -14,15 +14,15 @@ import org.antlr.v4.runtime.misc.Interval; * Code-generated utility class mapping Unicode properties to Unicode code point ranges. */ public abstract class UnicodeData { - private static final Map\<String, IntervalSet\> propertyCodePointRanges = new HashMap\<\>(<length(propertyCodePointRanges)>); - private static final Map\<String, String\> propertyAliases = new HashMap\<\>(<length(propertyAliases)>); + private static final Map\<String, IntervalSet> propertyCodePointRanges = new HashMap\<>(<length(propertyCodePointRanges)>); + private static final Map\<String, String> propertyAliases = new HashMap\<>(<length(propertyAliases)>); // Work around Java 64k bytecode method limit by splitting up static // initialization into one method per Unicode property <propertyCodePointRanges.keys:{ k | // Unicode code points with property "<k>" static private void addProperty<i>() { - List\<Interval\> intervals = Arrays.asList( + List\<Interval> intervals = Arrays.asList( <propertyCodePointRanges.(k).intervals:{ interval | Interval.of(<interval.a>, <interval.b>)}; separator=",\n"> ); IntervalSet codePointRanges = new IntervalSet(intervals); |