Update PropertiesToHashMapConverter.java

This commit is contained in:
Mateusz Szablak 2021-02-10 00:40:55 +01:00 committed by GitHub
parent c4c633eeeb
commit 0315847ad7
1 changed files with 3 additions and 3 deletions

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
));
}