Skip to content

Commit

Permalink
refactor: stream().forEach() replaced with forEach() for bett…
Browse files Browse the repository at this point in the history
…er readability

Signed-off-by: Deniz Öğüt <[email protected]>
  • Loading branch information
denizOgut authored Sep 2, 2024
1 parent c5adc36 commit c2c9a0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ private static Object sortValuesYamlRecursive(final Object input) {
if (input instanceof Map) {
final Map<String, Object> inputMap = (Map<String, Object>) input;
final SortedMap<String, Object> result = new TreeMap<>();
inputMap.entrySet().stream().forEach(entry -> result.put(entry.getKey(), sortValuesYamlRecursive(entry.getValue())));
inputMap.forEach((key, value) -> result.put(key, sortValuesYamlRecursive(value)));
return result;
} else {
return input;
Expand Down

0 comments on commit c2c9a0c

Please sign in to comment.