From 3ef3678ed08437fbbc40fbc841e2743dd1c9a703 Mon Sep 17 00:00:00 2001 From: Comick Date: Thu, 17 May 2018 23:51:21 +0200 Subject: [PATCH] Fix TSetFromMap#add return value --- .../src/main/java/org/teavm/classlib/java/util/TSetFromMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classlib/src/main/java/org/teavm/classlib/java/util/TSetFromMap.java b/classlib/src/main/java/org/teavm/classlib/java/util/TSetFromMap.java index f2b943ca8..1ceb3ce9e 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/util/TSetFromMap.java +++ b/classlib/src/main/java/org/teavm/classlib/java/util/TSetFromMap.java @@ -46,7 +46,7 @@ public class TSetFromMap extends TAbstractSet { @Override public boolean add(E e) { - return map.put(e, TBoolean.TRUE) != null; + return map.put(e, TBoolean.TRUE) == null; } @Override