ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/extra166y/CombineDemo.java
(Generate patch)

Comparing jsr166/src/test/extra166y/CombineDemo.java (file contents):
Revision 1.2 by jsr166, Mon Nov 16 04:16:42 2009 UTC vs.
Revision 1.3 by jsr166, Wed Sep 1 07:28:19 2010 UTC

# Line 16 | Line 16 | class CombineDemo {
16      static int reps = 16;
17      static final long maxValue = 1 << 12;
18  
19 <    public static void main (String[] args) throws Exception {
19 >    public static void main(String[] args) throws Exception {
20          int n = 1 << 20;
21          Long[] a = new Long[n];
22          ParallelArray<Long> pa = ParallelArray.createUsingHandoff(a, fjpool);
# Line 291 | Line 291 | class CombineDemo {
291          return u;
292      }
293  
294 <    static void checkSorted (ParallelArray<Long> pa)  {
294 >    static void checkSorted(ParallelArray<Long> pa)  {
295          int n = pa.size();
296          for (int i = 0; i < n - 1; i++) {
297              if (pa.get(i).compareTo(pa.get(i+1)) >= 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines