Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Pace2Car committed Nov 21, 2023
1 parent 2b2b61b commit 6aa4950
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public final class PropertiesConverter {
* @return converted string content
*/
public static String convert(final Properties props) {
return null == props || props.isEmpty() ? ""
: JsonUtils.toJsonString(props.keySet().stream().map(Object::toString).sorted().collect(Collectors.toMap(each -> each, props::get, (key1, key2) -> key1, LinkedHashMap::new)));
return null == props || props.isEmpty() ? "" : JsonUtils.toJsonString(props.keySet().stream().map(Object::toString).sorted()
.collect(Collectors.toMap(each -> each, props::get, (oldValue, currentValue) -> oldValue, LinkedHashMap::new)));
}
}

0 comments on commit 6aa4950

Please sign in to comment.