fix compilation with ECJ (eclipse IDE etc)
This commit is contained in:
parent
b14326d494
commit
d4e53d8393
|
@ -75,7 +75,7 @@ public class CopyOnWriteHashSet<T> extends ForwardingSet<T> {
|
||||||
*/
|
*/
|
||||||
public CopyOnWriteHashSet<T> copyAndAddAll(Collection<? extends T> entries) {
|
public CopyOnWriteHashSet<T> copyAndAddAll(Collection<? extends T> entries) {
|
||||||
CopyOnWriteHashMap<T, Boolean> updated = this.map.copyAndPutAll(entries.stream().map(
|
CopyOnWriteHashMap<T, Boolean> updated = this.map.copyAndPutAll(entries.stream().map(
|
||||||
p -> new AbstractMap.SimpleImmutableEntry<>(p, true)
|
p -> new AbstractMap.SimpleImmutableEntry<T, Boolean>(p, true)
|
||||||
));
|
));
|
||||||
return new CopyOnWriteHashSet<>(updated);
|
return new CopyOnWriteHashSet<>(updated);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue