Update PropertiesToHashMapConverter.java

This commit is contained in:
Mateusz Szablak
2021-02-10 00:40:55 +01:00
committed by GitHub
parent c37d3cf8c5
commit b7ef5eafda

View File

@@ -27,9 +27,9 @@ public class PropertiesToHashMapConverter {
public static HashMap<String, String> streamConvert(Properties prop) {
return prop.entrySet().stream().collect(
Collectors.toMap(
e -> String.valueOf(e.getKey()),
e -> String.valueOf(e.getValue()),
(prev, next) -> next, HashMap::new
e -> String.valueOf(e.getKey()),
e -> String.valueOf(e.getValue()),
(prev, next) -> next, HashMap::new
));
}