fix compilation with ECJ (eclipse IDE etc)

This commit is contained in:
Robert Muir 2015-09-16 14:33:39 -04:00
parent b14326d494
commit d4e53d8393
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class CopyOnWriteHashSet<T> extends ForwardingSet<T> {
*/
public CopyOnWriteHashSet<T> copyAndAddAll(Collection<? extends T> entries) {
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);
}