From 53459b096b817d65e05876977c192b963fe97064 Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Wed, 3 Jan 2024 17:21:37 +0100 Subject: [PATCH] spots --- .../java/org/unicode/text/UCD/GenerateData.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/unicodetools/src/main/java/org/unicode/text/UCD/GenerateData.java b/unicodetools/src/main/java/org/unicode/text/UCD/GenerateData.java index 00f29d5c4..693494e98 100644 --- a/unicodetools/src/main/java/org/unicode/text/UCD/GenerateData.java +++ b/unicodetools/src/main/java/org/unicode/text/UCD/GenerateData.java @@ -967,9 +967,7 @@ public static void writeNormalizerTestSuite(String directory, String fileName) composablesByFirstCodePoint .computeIfAbsent(first, key -> new TreeSet<>()) .add(c); - composablesByLastCodePoint - .computeIfAbsent(last, key -> new TreeSet<>()) - .add(c); + composablesByLastCodePoint.computeIfAbsent(last, key -> new TreeSet<>()).add(c); } } } @@ -1057,11 +1055,13 @@ public static void writeNormalizerTestSuite(String directory, String fileName) length, s -> { if (!s.equals(decomposition) - && Default.nfd() - .normalize(s) - .equals(decomposition) - && s.codePoints().anyMatch(cp -> Default.nfd() - .normalize(cp).contains(link))) { + && Default.nfd().normalize(s).equals(decomposition) + && s.codePoints() + .anyMatch( + cp -> + Default.nfd() + .normalize(cp) + .contains(link))) { for (int j = 0; j < s.length(); ++j) { if (Default.nfd() .normalize(s.substring(0, j))