Skip to content

Commit

Permalink
Update PropertiesToHashMapConverter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Saber-k authored Feb 9, 2021
1 parent c37d3cf commit b7ef5ea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public static HashMap<String, String> loopConvert(Properties prop) {
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
));
}

Expand Down

0 comments on commit b7ef5ea

Please sign in to comment.