Skip to content

Commit

Permalink
Modern Java
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Oct 3, 2023
1 parent e0e2fc2 commit 3db78c6
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>();
propertyToOrderedValues.put(property, values);
}
final var values =
propertyToOrderedValues.computeIfAbsent(
property, k -> new ArrayList<String>());
values.add(value);
} else if (line.startsWith("HackName:")) {
final String regularItem = Utility.getUnskeleton(lineValue, true);
Expand Down

0 comments on commit 3db78c6

Please sign in to comment.