Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed May 15, 2023
1 parent 780d8f3 commit 7d6cf78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eco-api/src/main/java/com/willfp/eco/core/map/DefaultMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public Set<Entry<K, V>> entrySet() {
*/
@NotNull
public static <K, K1, V> DefaultMap<K, Map<K1, V>> createNestedMap() {
return new DefaultMap<>(() -> new HashMap<>());
return new DefaultMap<>(HashMap::new);
}

/**
Expand All @@ -163,6 +163,6 @@ public static <K, K1, V> DefaultMap<K, Map<K1, V>> createNestedMap() {
*/
@NotNull
public static <K, K1, V> DefaultMap<K, ListMap<K1, V>> createNestedListMap() {
return new DefaultMap<>(() -> new ListMap<>());
return new DefaultMap<>(ListMap::new);
}
}

0 comments on commit 7d6cf78

Please sign in to comment.