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

Comparing jsr166/src/main/java/util/ArrayPrefixHelpers.java (file contents):
Revision 1.1 by dl, Wed Jan 16 19:01:22 2013 UTC vs.
Revision 1.3 by jsr166, Wed Dec 31 04:53:37 2014 UTC

# Line 19 | Line 19 | import java.util.function.DoubleBinaryOp
19   * @since 1.8
20   */
21   class ArrayPrefixHelpers {
22 <    private ArrayPrefixHelpers() {}; // non-instantiable
22 >    private ArrayPrefixHelpers() {} // non-instantiable
23  
24      /*
25       * Parallel prefix (aka cumulate, scan) task classes
# Line 187 | Line 187 | class ArrayPrefixHelpers {
187                          sum = t.in;
188                      t.out = sum;
189                      for (CumulateTask<T> par;;) {             // propagate
190 <                        if ((par = (CumulateTask<T>)t.getCompleter()) == null) {
190 >                        @SuppressWarnings("unchecked") CumulateTask<T> partmp
191 >                            = (CumulateTask<T>)t.getCompleter();
192 >                        if ((par = partmp) == null) {
193                              if ((state & FINISHED) != 0)      // enable join
194                                  t.quietlyComplete();
195                              break outer;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines