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 d2364aa63..d237633e7 100644 --- a/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java +++ b/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java @@ -2036,10 +2036,10 @@ public static UnicodeSet parseUnicodeSet(String source, ParsePosition pp) return icuSet; } // Simplest way for the lambda function to report errors. - // It cannot throw a ParseException, and it cannot modify class fields. - // It _can_ modify what this field points to. + // It cannot throw a ParseException, and it cannot modify local variables. + // It _can_ modify what this local variable points to. // Below, we will throw a ParseException for the first bad position. - List badEscapePositions = new ArrayList<>(); + final List badEscapePositions = new ArrayList<>(); unicodeSetExpression = matcher.replaceAll( (MatchResult match) -> {