diff --git a/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java b/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java index deb75b75a..714cafc92 100644 --- a/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java +++ b/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java @@ -2052,6 +2052,7 @@ public static UnicodeSet parseUnicodeSet(String source, ParsePosition pp) ' '); }); for (int p : badEscapePositions) { + // Simplest way to throw an exception for only the first list element. throw new ParseException("No character matching \\N escape", initialPosition + p); } var patchedParsePosition = new ParsePosition(0);