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.29 by jsr166, Wed Jul 12 19:55:45 2006 UTC vs.
Revision 1.30 by jsr166, Sat Oct 28 00:31:54 2006 UTC

# Line 71 | Line 71 | public abstract class AbstractExecutorSe
71          return new FutureTask<T>(callable);
72      }
73  
74 +    /**
75 +     * @throws RejectedExecutionException {@inheritDoc}
76 +     * @throws NullPointerException       {@inheritDoc}
77 +     */
78      public Future<?> submit(Runnable task) {
79          if (task == null) throw new NullPointerException();
80          RunnableFuture<Object> ftask = newTaskFor(task, null);
# Line 78 | Line 82 | public abstract class AbstractExecutorSe
82          return ftask;
83      }
84  
85 +    /**
86 +     * @throws RejectedExecutionException {@inheritDoc}
87 +     * @throws NullPointerException       {@inheritDoc}
88 +     */
89      public <T> Future<T> submit(Runnable task, T result) {
90          if (task == null) throw new NullPointerException();
91          RunnableFuture<T> ftask = newTaskFor(task, result);
# Line 85 | Line 93 | public abstract class AbstractExecutorSe
93          return ftask;
94      }
95  
96 +    /**
97 +     * @throws RejectedExecutionException {@inheritDoc}
98 +     * @throws NullPointerException       {@inheritDoc}
99 +     */
100      public <T> Future<T> submit(Callable<T> task) {
101          if (task == null) throw new NullPointerException();
102          RunnableFuture<T> ftask = newTaskFor(task);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines