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

Comparing jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java (file contents):
Revision 1.25 by dl, Sun Sep 14 14:25:22 2003 UTC vs.
Revision 1.26 by dl, Thu Sep 25 11:01:22 2003 UTC

# Line 797 | Line 797 | public class ThreadPoolExecutor implemen
797       * @throws RejectedExecutionException at discretion of
798       * <tt>RejectedExecutionHandler</tt>, if task cannot be accepted
799       * for execution
800 +     * @throws NullPointerException if command is null
801       */
802      public void execute(Runnable command) {
803 +        if (command == null)
804 +            throw new NullPointerException();
805          for (;;) {
806              if (runState != RUNNING) {
807                  reject(command);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines