BUG-7464: Split TrieMap into read-only and read-write
[yangtools.git] / third-party / triemap / src / test / java / org / opendaylight / yangtools / triemap / TestConcurrentMapRemove.java
index a0143a649b3f4486f66a2094c479d83ad132f7ff..0c7d4248f51a81e9a4af1108663189298b52198f 100644 (file)
@@ -28,7 +28,7 @@ public class TestConcurrentMapRemove {
 
     @Test
     public void testConcurrentMapRemove () {
-        final ConcurrentMap<Integer, Object> map = new TrieMap<>();
+        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));