mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix TSetFromMap#add return value
This commit is contained in:
parent
27a4848947
commit
3ef3678ed0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user