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.30 by dl, Sun Oct 5 23:00:18 2003 UTC vs.
Revision 1.31 by dl, Sun Oct 5 23:54:57 2003 UTC

# Line 943 | Line 943 | public class ThreadPoolExecutor implemen
943       * Sets a new handler for unexecutable tasks.
944       *
945       * @param handler the new handler
946 +     * @throws NullPointerException if handler is null
947       * @see #getRejectedExecutionHandler
948       */
949      public void setRejectedExecutionHandler(RejectedExecutionHandler handler) {
950 +        if (handler == null)
951 +            throw new NullPointerException();
952          this.handler = handler;
953      }
954  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines