Skip to content

Commit 6205225

Browse files
committed
Use new Map.computeIfAbsent() method
1 parent 99753f9 commit 6205225

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/main/java/org/mapfish/print/output/ValuesLogger.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ private void logValue(
110110
} else {
111111
// if the value for this key is null, let's take the next value so that we
112112
// eventually get the type of the column
113-
if (columns.get(column.getKey()) == null) {
114-
columns.put(column.getKey(), column.getValue());
115-
}
113+
columns.computeIfAbsent(column.getKey(), k -> column.getValue());
116114
}
117115
}
118116
}

0 commit comments

Comments
 (0)