--- jsr166/src/jsr166e/ConcurrentHashMapV8.java 2012/10/02 05:07:19 1.64 +++ jsr166/src/jsr166e/ConcurrentHashMapV8.java 2012/10/21 04:14:30 1.68 @@ -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 @@ -3671,8 +3671,8 @@ public class ConcurrentHashMapV8 * of each (key, value). * * @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). + * for an element, or null if there is no transformation (in + * which case the action is not applied) * @param action the action */ public void forEach(BiFun transformer, @@ -3704,8 +3704,8 @@ public class ConcurrentHashMapV8 * combine values, or null if none. * * @param transformer a function returning the transformation - * for an element, or null of there is no transformation (in - * which case it is not combined). + * for an element, or null if there is no transformation (in + * 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 @@ -3788,8 +3788,8 @@ public class ConcurrentHashMapV8 * of each key. * * @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). + * for an element, or null if there is no transformation (in + * which case the action is not applied) * @param action the action */ public void forEachKey(Fun transformer, @@ -3834,8 +3834,8 @@ public class ConcurrentHashMapV8 * null if none. * * @param transformer a function returning the transformation - * for an element, or null of there is no transformation (in - * which case it is not combined). + * for an element, or null if there is no transformation (in + * which case it is not combined) * @param reducer a commutative associative combining function * @return the result of accumulating the given transformation * of all keys @@ -3918,8 +3918,8 @@ public class ConcurrentHashMapV8 * of each value. * * @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). + * for an element, or null if there is no transformation (in + * which case the action is not applied) */ public void forEachValue(Fun transformer, Action action) { @@ -3963,8 +3963,8 @@ public class ConcurrentHashMapV8 * null if none. * * @param transformer a function returning the transformation - * for an element, or null of there is no transformation (in - * which case it is not combined). + * for an element, or null if there is no transformation (in + * which case it is not combined) * @param reducer a commutative associative combining function * @return the result of accumulating the given transformation * of all values @@ -4047,8 +4047,8 @@ public class ConcurrentHashMapV8 * of each entry. * * @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). + * for an element, or null if there is no transformation (in + * which case the action is not applied) * @param action the action */ public void forEachEntry(Fun, ? extends U> transformer, @@ -4092,7 +4092,7 @@ public class ConcurrentHashMapV8 * or null if none. * * @param transformer a function returning the transformation - * for an element, or null of there is no transformation (in + * for an element, or null if there is no transformation (in * which case it is not combined). * @param reducer a commutative associative combining function * @return the result of accumulating the given transformation @@ -4196,8 +4196,8 @@ 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). + * for an element, or null if there is no transformation (in + * which case the action is not applied) * @param action the action * @return the task */ @@ -4239,7 +4239,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 + * for an element, or null if there is no transformation (in * which case it is not combined). * @param reducer a commutative associative combining function * @return the task @@ -4346,8 +4346,8 @@ 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). + * for an element, or null if there is no transformation (in + * which case the action is not applied) * @param action the action * @return the task */ @@ -4406,7 +4406,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 + * for an element, or null if there is no transformation (in * which case it is not combined). * @param reducer a commutative associative combining function * @return the task @@ -4513,8 +4513,8 @@ 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). + * for an element, or null if there is no transformation (in + * which case the action is not applied) * @param action the action */ public static ForkJoinTask forEachValue @@ -4573,7 +4573,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 + * for an element, or null if there is no transformation (in * which case it is not combined). * @param reducer a commutative associative combining function * @return the task @@ -4680,8 +4680,8 @@ 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). + * for an element, or null if there is no transformation (in + * which case the action is not applied) * @param action the action */ public static ForkJoinTask forEachEntry @@ -4740,7 +4740,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 + * for an element, or null if there is no transformation (in * which case it is not combined). * @param reducer a commutative associative combining function * @return the task @@ -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)) {