--- jsr166/src/jsr166e/ConcurrentHashMapV8.java 2012/07/05 06:26:14 1.45 +++ jsr166/src/jsr166e/ConcurrentHashMapV8.java 2012/07/07 13:01:53 1.50 @@ -195,18 +195,6 @@ public class ConcurrentHashMapV8 * 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(); } /* @@ -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(); @@ -2342,8 +2330,8 @@ public class ConcurrentHashMapV8 if (initialCapacity < concurrencyLevel) // Use at least as many bins initialCapacity = concurrencyLevel; // as estimated threads long size = (long)(1.0 + (long)initialCapacity / loadFactor); - int cap = ((size >= (long)MAXIMUM_CAPACITY) ? - MAXIMUM_CAPACITY: tableSizeFor((int)size)); + int cap = (size >= (long)MAXIMUM_CAPACITY) ? + MAXIMUM_CAPACITY : tableSizeFor((int)size); this.counter = new LongAdder(); this.sizeCtl = cap; } @@ -2952,8 +2940,8 @@ public class ConcurrentHashMapV8 /** * Sets our entry's value and writes through to the map. The - * value to return is somewhat arbitrary here. Since a we do - * not necessarily track asynchronous changes, the most recent + * value to return is somewhat arbitrary here. Since we do not + * necessarily track asynchronous changes, the most recent * "previous" value could be different from what we return (or * could even have been removed in which case the put will * re-establish). We do not and cannot guarantee more.