diff --git a/rxlib/src/test/java/org/rx/util/TestUtil.java b/rxlib/src/test/java/org/rx/util/TestUtil.java index 58351ed6..8a5dfdca 100644 --- a/rxlib/src/test/java/org/rx/util/TestUtil.java +++ b/rxlib/src/test/java/org/rx/util/TestUtil.java @@ -14,10 +14,7 @@ import org.rx.annotation.Mapping; import org.rx.annotation.Metadata; import org.rx.annotation.Subscribe; -import org.rx.bean.BiTuple; -import org.rx.bean.DateTime; -import org.rx.bean.FlagsEnum; -import org.rx.bean.ULID; +import org.rx.bean.*; import org.rx.core.*; import org.rx.exception.InvalidException; import org.rx.test.GirlBean; @@ -419,7 +416,7 @@ public static class UserDemo { @Test public void third() { - Map identityMap = new WeakIdentityMap<>(); + Map identityMap = new ConcurrentWeakMap<>(true); UserStruct k = new UserStruct(); identityMap.put(k, 1); k.age = 2;