Fix TSetFromMap#add return value

This commit is contained in:
Comick 2018-05-17 23:51:21 +02:00 committed by Alexey Andreev
parent 27a4848947
commit 3ef3678ed0

View File

@ -46,7 +46,7 @@ public class TSetFromMap<E> extends TAbstractSet<E> {
@Override
public boolean add(E e) {
return map.put(e, TBoolean.TRUE) != null;
return map.put(e, TBoolean.TRUE) == null;
}
@Override