From 49cba00f37677c17e8121a576d232b4040e2016c Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 30 Jan 2018 17:15:12 +0100 Subject: [PATCH] Commented out tests --- .../util/collections/LockFreeIntBiMap.java | 44 ++++++++--------- .../util/collections/ObjectIntMap.java | 48 +++++++++---------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/src/dorkbox/util/collections/LockFreeIntBiMap.java b/src/dorkbox/util/collections/LockFreeIntBiMap.java index ffcf4a0..05d8594 100644 --- a/src/dorkbox/util/collections/LockFreeIntBiMap.java +++ b/src/dorkbox/util/collections/LockFreeIntBiMap.java @@ -62,28 +62,28 @@ class LockFreeIntBiMap { // section. Because of this, we can have unlimited reader threads all going at the same time, without contention (which is our // use-case 99% of the time) - public static - void main(String[] args) { - LockFreeIntBiMap test = new LockFreeIntBiMap<>(); - String one = "One"; - String four = "Four"; - - test.put(1, one); - test.put(2, "Two"); - test.put(3, "Three"); - test.put(4, four); - // try { - // test.put(1, four); - // } catch (IllegalArgumentException e) { - // } - test.putForce(1, four); - test.put(5, one); - - System.out.println(test.toString()); - - System.out.println("Reverse"); - System.out.println(test.inverse().toString()); - } + // public static + // void main(String[] args) { + // LockFreeIntBiMap test = new LockFreeIntBiMap(); + // String one = "One"; + // String four = "Four"; + // + // test.put(1, one); + // test.put(2, "Two"); + // test.put(3, "Three"); + // test.put(4, four); + // // try { + // // test.put(1, four); + // // } catch (IllegalArgumentException e) { + // // } + // test.putForce(1, four); + // test.put(5, one); + // + // System.out.println(test.toString()); + // + // System.out.println("Reverse"); + // System.out.println(test.inverse().toString()); + // } /** * Creates a new bimap using @{link Integer#MIN_VALUE}. diff --git a/src/dorkbox/util/collections/ObjectIntMap.java b/src/dorkbox/util/collections/ObjectIntMap.java index cb5c153..cc9330d 100644 --- a/src/dorkbox/util/collections/ObjectIntMap.java +++ b/src/dorkbox/util/collections/ObjectIntMap.java @@ -43,30 +43,30 @@ public class ObjectIntMap { private int stashCapacity; private int pushIterations; - public static - void main(String[] args) { - ObjectIntMap test = new ObjectIntMap<>(4); - String one = "One"; - String four = "Four"; - - test.put(one, 1); - test.put("Two", 2); - test.put("Three", 3); - test.put(four, 4); - test.put(four, 1); - test.put(one, 13); - - ObjectIntMap test2 = new ObjectIntMap<>(2); - test2.put(one, 11); - test2.put(four, 44); - test2.put("Five", 55); - - test2.putAll(test); - - - System.out.println(test.toString()); - System.out.println(test2.toString()); - } + // public static + // void main(String[] args) { + // ObjectIntMap test = new ObjectIntMap(4); + // String one = "One"; + // String four = "Four"; + // + // test.put(one, 1); + // test.put("Two", 2); + // test.put("Three", 3); + // test.put(four, 4); + // test.put(four, 1); + // test.put(one, 13); + // + // ObjectIntMap test2 = new ObjectIntMap(2); + // test2.put(one, 11); + // test2.put(four, 44); + // test2.put("Five", 55); + // + // test2.putAll(test); + // + // + // System.out.println(test.toString()); + // System.out.println(test2.toString()); + // } /** Creates a new map with an initial capacity of 32 and a load factor of 0.8. This map will hold 25 items before growing the * backing table. */