Skip to content

Commit

Permalink
No class fields were harmed in the making of this list
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Aug 9, 2024
1 parent 63388e6 commit 357bde6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Integer> badEscapePositions = new ArrayList<>();
final List<Integer> badEscapePositions = new ArrayList<>();
unicodeSetExpression =
matcher.replaceAll(
(MatchResult match) -> {
Expand Down

0 comments on commit 357bde6

Please sign in to comment.