Skip to content

Commit

Permalink
(yegor256#1384) Do not sync, since map created at construction
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Sep 15, 2020
1 parent 19ad463 commit 41ce82e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/java/org/cactoos/map/Synced.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,11 @@ public Synced(final Map<X, Y> map,
public Synced(final Map<X, Y> map) {
super(
new MapOf<>(
new org.cactoos.scalar.Synced<>(
() -> {
final Map<X, Y> temp = new ConcurrentHashMap<>(0);
temp.putAll(map);
return temp;
}
)
() -> {
final Map<X, Y> temp = new ConcurrentHashMap<>(0);
temp.putAll(map);
return temp;
}
)
);
}
Expand Down

0 comments on commit 41ce82e

Please sign in to comment.