Remove the object cache
[yangtools.git] / third-party / triemap / src / test / java / org / opendaylight / yangtools / triemap / TestConcurrentMapRemove.java
index a0143a649b3f4486f66a2094c479d83ad132f7ff..b4b900158065561ebbee7968a77a1071294f0786 100644 (file)
@@ -24,11 +24,11 @@ import java.util.concurrent.ConcurrentMap;
 import org.junit.Test;
 
 public class TestConcurrentMapRemove {
-    private static final int COUNT = 50*1000;
+    private static final int COUNT = 50 * 1000;
 
     @Test
-    public void testConcurrentMapRemove () {
-        final ConcurrentMap<Integer, Object> map = new TrieMap<>();
+    public void testConcurrentMapRemove() {
+        final ConcurrentMap<Integer, Object> map = TrieMap.create();
 
         for (int i = 128; i < COUNT; i++) {
             assertFalse(map.remove(i, i));
@@ -52,7 +52,7 @@ public class TestConcurrentMapRemove {
         final ZeroHashInt v3 = new ZeroHashInt(6);
         final ZeroHashInt v3dup = new ZeroHashInt(6);
 
-        final Map<ZeroHashInt, ZeroHashInt> map = new TrieMap<>();
+        final Map<ZeroHashInt, ZeroHashInt> map = TrieMap.create();
         // Pre-populate an LNode
         assertNull(map.putIfAbsent(k1, v1));
         assertNull(map.putIfAbsent(k2, v2));