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

Comparing jsr166/src/jsr166e/RecursiveTask.java (file contents):
Revision 1.1 by dl, Mon Aug 13 15:52:34 2012 UTC vs.
Revision 1.3 by jsr166, Sun Jul 21 06:35:08 2013 UTC

# Line 17 | Line 17 | package jsr166e;
17   *   Fibonacci(int n) { this.n = n; }
18   *   Integer compute() {
19   *     if (n <= 1)
20 < *        return n;
20 > *       return n;
21   *     Fibonacci f1 = new Fibonacci(n - 1);
22   *     f1.fork();
23   *     Fibonacci f2 = new Fibonacci(n - 2);
# Line 46 | Line 46 | public abstract class RecursiveTask<V> e
46  
47      /**
48       * The main computation performed by this task.
49 +     * @return the result of the computation
50       */
51      protected abstract V compute();
52  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines