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) {
|
public static HashMap<String, String> streamConvert(Properties prop) {
|
||||||
return prop.entrySet().stream().collect(
|
return prop.entrySet().stream().collect(
|
||||||
Collectors.toMap(
|
Collectors.toMap(
|
||||||
e -> String.valueOf(e.getKey()),
|
e -> String.valueOf(e.getKey()),
|
||||||
e -> String.valueOf(e.getValue()),
|
e -> String.valueOf(e.getValue()),
|
||||||
(prev, next) -> next, HashMap::new
|
(prev, next) -> next, HashMap::new
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user