--- jsr166/src/jsr166e/ConcurrentHashMapV8.java 2012/09/29 16:01:22 1.63 +++ jsr166/src/jsr166e/ConcurrentHashMapV8.java 2012/10/21 04:07:13 1.67 @@ -2506,11 +2506,11 @@ public class ConcurrentHashMapV8 /** * Returns the value to which the specified key is mapped, - * or the gieven defaultValue if this map contains no mapping for the key. + * or the given defaultValue if this map contains no mapping for the key. * * @param key the key * @param defaultValue the value to return if this map contains - * no mapping for the given key. + * no mapping for the given key * @return the mapping for the key, if present; else the defaultValue * @throws NullPointerException if the specified key is null */ @@ -2650,7 +2650,7 @@ public class ConcurrentHashMapV8 * @param key key with which the specified value is to be associated * @param mappingFunction the function to compute a value * @return the current (existing or computed) value associated with - * the specified key, or null if the computed value is null. + * the specified key, or null if the computed value is null * @throws NullPointerException if the specified key or mappingFunction * is null * @throws IllegalStateException if the computation detectably @@ -3672,7 +3672,7 @@ public class ConcurrentHashMapV8 * * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case the action is not applied). + * which case the action is not applied) * @param action the action */ public void forEach(BiFun transformer, @@ -3705,7 +3705,7 @@ public class ConcurrentHashMapV8 * * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case it is not combined). + * which case it is not combined) * @param reducer a commutative associative combining function * @return the result of accumulating the given transformation * of all (key, value) pairs @@ -3789,7 +3789,7 @@ public class ConcurrentHashMapV8 * * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case the action is not applied). + * which case the action is not applied) * @param action the action */ public void forEachKey(Fun transformer, @@ -3835,7 +3835,7 @@ public class ConcurrentHashMapV8 * * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case it is not combined). + * which case it is not combined) * @param reducer a commutative associative combining function * @return the result of accumulating the given transformation * of all keys @@ -3919,7 +3919,7 @@ public class ConcurrentHashMapV8 * * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case the action is not applied). + * which case the action is not applied) */ public void forEachValue(Fun transformer, Action action) { @@ -3964,7 +3964,7 @@ public class ConcurrentHashMapV8 * * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case it is not combined). + * which case it is not combined) * @param reducer a commutative associative combining function * @return the result of accumulating the given transformation * of all values @@ -4048,7 +4048,7 @@ public class ConcurrentHashMapV8 * * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case the action is not applied). + * which case the action is not applied) * @param action the action */ public void forEachEntry(Fun, ? extends U> transformer, @@ -4197,7 +4197,7 @@ public class ConcurrentHashMapV8 * @param map the map * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case the action is not applied). + * which case the action is not applied) * @param action the action * @return the task */ @@ -4347,7 +4347,7 @@ public class ConcurrentHashMapV8 * @param map the map * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case the action is not applied). + * which case the action is not applied) * @param action the action * @return the task */ @@ -4514,7 +4514,7 @@ public class ConcurrentHashMapV8 * @param map the map * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case the action is not applied). + * which case the action is not applied) * @param action the action */ public static ForkJoinTask forEachValue @@ -4681,7 +4681,7 @@ public class ConcurrentHashMapV8 * @param map the map * @param transformer a function returning the transformation * for an element, or null of there is no transformation (in - * which case the action is not applied). + * which case the action is not applied) * @param action the action */ public static ForkJoinTask forEachEntry @@ -4846,7 +4846,7 @@ public class ConcurrentHashMapV8 int batch; // split control; -1 for unknown int pending; // completion control - BulkTask(ConcurrentHashMapV8 map, BulkTask parent, + BulkTask(ConcurrentHashMapV8 map, BulkTask parent, int batch) { super(map); this.parent = parent; @@ -5439,7 +5439,7 @@ public class ConcurrentHashMapV8 if ((c = t.pending) == 0) { for (s = t.rights; s != null; s = t.rights = s.nextRight) { if ((sr = s.result) != null) - t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr); + t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr); } if ((par = t.parent) == null || !(par instanceof ReduceKeysTask)) { @@ -5494,7 +5494,7 @@ public class ConcurrentHashMapV8 if ((c = t.pending) == 0) { for (s = t.rights; s != null; s = t.rights = s.nextRight) { if ((sr = s.result) != null) - t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr); + t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr); } if ((par = t.parent) == null || !(par instanceof ReduceValuesTask)) { @@ -5549,7 +5549,7 @@ public class ConcurrentHashMapV8 if ((c = t.pending) == 0) { for (s = t.rights; s != null; s = t.rights = s.nextRight) { if ((sr = s.result) != null) - t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr); + t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr); } if ((par = t.parent) == null || !(par instanceof ReduceEntriesTask)) { @@ -5608,7 +5608,7 @@ public class ConcurrentHashMapV8 if ((c = t.pending) == 0) { for (s = t.rights; s != null; s = t.rights = s.nextRight) { if ((sr = s.result) != null) - t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr); + t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr); } if ((par = t.parent) == null || !(par instanceof MapReduceKeysTask)) { @@ -5668,7 +5668,7 @@ public class ConcurrentHashMapV8 if ((c = t.pending) == 0) { for (s = t.rights; s != null; s = t.rights = s.nextRight) { if ((sr = s.result) != null) - t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr); + t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr); } if ((par = t.parent) == null || !(par instanceof MapReduceValuesTask)) { @@ -5728,7 +5728,7 @@ public class ConcurrentHashMapV8 if ((c = t.pending) == 0) { for (s = t.rights; s != null; s = t.rights = s.nextRight) { if ((sr = s.result) != null) - t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr); + t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr); } if ((par = t.parent) == null || !(par instanceof MapReduceEntriesTask)) { @@ -5788,7 +5788,7 @@ public class ConcurrentHashMapV8 if ((c = t.pending) == 0) { for (s = t.rights; s != null; s = t.rights = s.nextRight) { if ((sr = s.result) != null) - t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr); + t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr); } if ((par = t.parent) == null || !(par instanceof MapReduceMappingsTask)) {