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

Comparing jsr166/src/jdk7/java/util/concurrent/ThreadPoolExecutor.java (file contents):
Revision 1.14 by jsr166, Sun Jan 18 20:17:32 2015 UTC vs.
Revision 1.15 by jsr166, Fri Sep 4 19:29:08 2015 UTC

# Line 1504 | Line 1504 | public class ThreadPoolExecutor extends
1504       *
1505       * @param corePoolSize the new core size
1506       * @throws IllegalArgumentException if {@code corePoolSize < 0}
1507 +     *         or {@code corePoolSize} is greater than the {@linkplain
1508 +     *         #getMaximumPoolSize() maximum pool size}
1509       * @see #getCorePoolSize
1510       */
1511      public void setCorePoolSize(int corePoolSize) {
1512 <        if (corePoolSize < 0)
1512 >        if (corePoolSize < 0 || maximumPoolSize < corePoolSize)
1513              throw new IllegalArgumentException();
1514          int delta = corePoolSize - this.corePoolSize;
1515          this.corePoolSize = corePoolSize;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines