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

Comparing jsr166/src/main/java/util/concurrent/AbstractExecutorService.java (file contents):
Revision 1.53 by jsr166, Fri Jul 24 20:54:37 2020 UTC vs.
Revision 1.54 by dl, Fri Nov 27 17:41:59 2020 UTC

# Line 25 | Line 25 | import java.util.List;
25   * to return {@code RunnableFuture} implementations other than
26   * {@code FutureTask}.
27   *
28 < * <p><b>Extension example</b>. Here is a sketch of a class
28 > * <p><b>Extension example.</b> Here is a sketch of a class
29   * that customizes {@link ThreadPoolExecutor} to use
30   * a {@code CustomTask} class instead of the default {@code FutureTask}:
31   * <pre> {@code
32   * public class CustomThreadPoolExecutor extends ThreadPoolExecutor {
33   *
34 < *   static class CustomTask<V> implements RunnableFuture<V> {...}
34 > *   static class CustomTask<V> implements RunnableFuture<V> { ... }
35   *
36   *   protected <V> RunnableFuture<V> newTaskFor(Callable<V> c) {
37   *       return new CustomTask<V>(c);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines