From 357bde65634b50a432af7d3447c6daeebce1cc86 Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Sat, 10 Aug 2024 00:50:35 +0200 Subject: [PATCH] No class fields were harmed in the making of this list --- .../java/org/unicode/text/UCD/TestUnicodeInvariants.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -> {