--- jsr166/src/jsr166e/ConcurrentHashMapV8.java 2012/07/04 20:28:46 1.44 +++ jsr166/src/jsr166e/ConcurrentHashMapV8.java 2012/07/06 21:39:18 1.48 @@ -192,21 +192,9 @@ public class ConcurrentHashMapV8 * @return a Spliterator covering approximately half of the * elements * @throws IllegalStateException if this Spliterator has - * already commenced traversing elements. + * already commenced traversing elements */ Spliterator split(); - - /** - * Returns a Spliterator producing the same elements as this - * Spliterator. This method may be used for example to create - * a second Spliterator before a traversal, in order to later - * perform a second traversal. - * - * @return a Spliterator covering the same range as this Spliterator. - * @throws IllegalStateException if this Spliterator has - * already commenced traversing elements. - */ - Spliterator clone(); } /* @@ -806,7 +794,7 @@ public class ConcurrentHashMapV8 } /** - * Find or add a node + * Finds or adds a node. * @return null if added */ @SuppressWarnings("unchecked") // suppress Comparable cast warning @@ -2012,8 +2000,8 @@ public class ConcurrentHashMapV8 } /** - * Split a normal bin with list headed by e into lo and hi parts; - * install in given table + * Splits a normal bin with list headed by e into lo and hi parts; + * installs in given table. */ private static void splitBin(Node[] nextTab, int i, Node e) { int bit = nextTab.length >>> 1; // bit to split on @@ -2043,7 +2031,7 @@ public class ConcurrentHashMapV8 } /** - * Split a tree bin into lo and hi parts; install in given table + * Splits a tree bin into lo and hi parts; installs in given table. */ private static void splitTreeBin(Node[] nextTab, int i, TreeBin t) { int bit = nextTab.length >>> 1; @@ -2199,7 +2187,7 @@ public class ConcurrentHashMapV8 baseLimit = baseSize = (tab == null) ? 0 : tab.length; } - /** Creates iterator for clone() and split() methods */ + /** Creates iterator for clone() and split() methods. */ InternalIterator(InternalIterator it, boolean split) { this.map = it.map; this.tab = it.tab; @@ -2211,7 +2199,7 @@ public class ConcurrentHashMapV8 } /** - * Advances next; returns nextVal or null if terminated + * Advances next; returns nextVal or null if terminated. * See above for explanation. */ final Object advance() { @@ -2261,7 +2249,7 @@ public class ConcurrentHashMapV8 /* ---------------- Public operations -------------- */ /** - * Creates a new, empty map with the default initial table size (16), + * Creates a new, empty map with the default initial table size (16). */ public ConcurrentHashMapV8() { this.counter = new LongAdder();