ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.131 by jsr166, Tue Oct 2 05:08:35 2012 UTC vs.
Revision 1.132 by jsr166, Sun Oct 21 02:37:58 2012 UTC

# Line 5438 | Line 5438 | public class ConcurrentHashMap<K, V>
5438                      if ((c = t.pending) == 0) {
5439                          for (s = t.rights; s != null; s = t.rights = s.nextRight) {
5440                              if ((sr = s.result) != null)
5441 <                                t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr);
5441 >                                t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr);
5442                          }
5443                          if ((par = t.parent) == null ||
5444                              !(par instanceof ReduceKeysTask)) {
# Line 5493 | Line 5493 | public class ConcurrentHashMap<K, V>
5493                      if ((c = t.pending) == 0) {
5494                          for (s = t.rights; s != null; s = t.rights = s.nextRight) {
5495                              if ((sr = s.result) != null)
5496 <                                t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr);
5496 >                                t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr);
5497                          }
5498                          if ((par = t.parent) == null ||
5499                              !(par instanceof ReduceValuesTask)) {
# Line 5548 | Line 5548 | public class ConcurrentHashMap<K, V>
5548                      if ((c = t.pending) == 0) {
5549                          for (s = t.rights; s != null; s = t.rights = s.nextRight) {
5550                              if ((sr = s.result) != null)
5551 <                                t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr);
5551 >                                t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr);
5552                          }
5553                          if ((par = t.parent) == null ||
5554                              !(par instanceof ReduceEntriesTask)) {
# Line 5607 | Line 5607 | public class ConcurrentHashMap<K, V>
5607                      if ((c = t.pending) == 0) {
5608                          for (s = t.rights; s != null; s = t.rights = s.nextRight) {
5609                              if ((sr = s.result) != null)
5610 <                                t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr);
5610 >                                t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr);
5611                          }
5612                          if ((par = t.parent) == null ||
5613                              !(par instanceof MapReduceKeysTask)) {
# Line 5667 | Line 5667 | public class ConcurrentHashMap<K, V>
5667                      if ((c = t.pending) == 0) {
5668                          for (s = t.rights; s != null; s = t.rights = s.nextRight) {
5669                              if ((sr = s.result) != null)
5670 <                                t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr);
5670 >                                t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr);
5671                          }
5672                          if ((par = t.parent) == null ||
5673                              !(par instanceof MapReduceValuesTask)) {
# Line 5727 | Line 5727 | public class ConcurrentHashMap<K, V>
5727                      if ((c = t.pending) == 0) {
5728                          for (s = t.rights; s != null; s = t.rights = s.nextRight) {
5729                              if ((sr = s.result) != null)
5730 <                                t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr);
5730 >                                t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr);
5731                          }
5732                          if ((par = t.parent) == null ||
5733                              !(par instanceof MapReduceEntriesTask)) {
# Line 5787 | Line 5787 | public class ConcurrentHashMap<K, V>
5787                      if ((c = t.pending) == 0) {
5788                          for (s = t.rights; s != null; s = t.rights = s.nextRight) {
5789                              if ((sr = s.result) != null)
5790 <                                t.result = (tr = t.result) == null? sr : reducer.apply(tr, sr);
5790 >                                t.result = ((tr = t.result) == null) ? sr : reducer.apply(tr, sr);
5791                          }
5792                          if ((par = t.parent) == null ||
5793                              !(par instanceof MapReduceMappingsTask)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines