Update PropertiesToHashMapConverter.java
This commit is contained in:
parent
c4c633eeeb
commit
0315847ad7
|
@ -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
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue