Skip to content

Commit

Permalink
Eclipse neon needs those type parameters to compile this
Browse files Browse the repository at this point in the history
  • Loading branch information
renner committed Jul 5, 2016
1 parent 4a6e1de commit 254acc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/suse/salt/netapi/calls/modules/Pkg.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,10 @@ public static LocalCall<Map<String, Object>> remove(Map<String, String> pkgs) {
* @return list of maps with one element each
*/
private static List<Map<String, String>> preparePkgs(Map<String, String> pkgs) {
List<Map<String, String>> pkgsList = pkgs.entrySet().stream()
.map(entry -> Collections.unmodifiableMap(Stream.of(entry).collect(
Collectors.toMap(e -> e.getKey(), e -> e.getValue()))))
return pkgs.entrySet().stream()
.map(e -> Collections.unmodifiableMap(Stream.of(e)
.collect(Collectors.<Map.Entry<String, String>, String, String>
toMap(Map.Entry::getKey, Map.Entry::getValue))))
.collect(Collectors.toList());
return pkgsList;
}
}

0 comments on commit 254acc9

Please sign in to comment.