< prev index next >

test/jdk/java/util/concurrent/tck/ForkJoinPoolTest.java

Print this page
8211283: Miscellaneous changes imported from jsr166 CVS 2018-11
Reviewed-by: martin, chegar

@@ -134,11 +134,11 @@
             int n = number;
             if (n <= 1)
                 return n;
             FibTask f1 = new FibTask(n - 1);
             f1.fork();
-            return (new FibTask(n - 2)).compute() + f1.join();
+            return new FibTask(n - 2).compute() + f1.join();
         }
     }
 
     // A failing task for testing
     static final class FailingTask extends ForkJoinTask<Void> {
< prev index next >