Skip to content

Commit

Permalink
(yegor256#1169) Do not copy map
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Oct 20, 2020
1 parent da8dcbe commit 2bc13e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/map/Synced.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,6 @@ public Synced(
*/
@SuppressWarnings("unchecked")
public Synced(final Map<? extends X, ? extends Y> map) {
super(Collections.synchronizedMap(new MapOf<>(map)));
super((Map<X, Y>) Collections.synchronizedMap(map));
}
}

0 comments on commit 2bc13e5

Please sign in to comment.