diff --git a/unicodetools/src/main/java/org/unicode/text/UCD/MakeUnicodeFiles.java b/unicodetools/src/main/java/org/unicode/text/UCD/MakeUnicodeFiles.java index de6a5dea9..2cc946821 100644 --- a/unicodetools/src/main/java/org/unicode/text/UCD/MakeUnicodeFiles.java +++ b/unicodetools/src/main/java/org/unicode/text/UCD/MakeUnicodeFiles.java @@ -366,11 +366,9 @@ private void build() { value = ""; } else if (line.startsWith("Value:")) { value = lineValue; - var values = propertyToOrderedValues.get(property); - if (values == null) { - values = new ArrayList(); - propertyToOrderedValues.put(property, values); - } + final var values = + propertyToOrderedValues.computeIfAbsent( + property, k -> new ArrayList()); values.add(value); } else if (line.startsWith("HackName:")) { final String regularItem = Utility.getUnskeleton(lineValue, true);