# | Line 108 | Line 108 | public class ForkJoinPoolTest extends JS | |
---|---|---|
108 | static final class FibTask extends RecursiveTask<Integer> { | |
109 | final int number; | |
110 | FibTask(int n) { number = n; } | |
111 | < | public Integer compute() { |
111 | > | protected Integer compute() { |
112 | int n = number; | |
113 | if (n <= 1) | |
114 | return n; | |
# | Line 136 | Line 136 | public class ForkJoinPoolTest extends JS | |
136 | this.locker = locker; | |
137 | this.lock = lock; | |
138 | } | |
139 | < | public Integer compute() { |
139 | > | protected Integer compute() { |
140 | int n; | |
141 | LockingFibTask f1 = null; | |
142 | LockingFibTask f2 = null; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |