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

Comparing jsr166/src/main/java/util/concurrent/Executors.java (file contents):
Revision 1.69 by jsr166, Sun May 18 23:47:56 2008 UTC vs.
Revision 1.70 by jsr166, Mon Sep 20 20:23:52 2010 UTC

# Line 54 | Line 54 | public class Executors {
54       *
55       * @param nThreads the number of threads in the pool
56       * @return the newly created thread pool
57 <     * @throws IllegalArgumentException if <tt>nThreads &lt;= 0</tt>
57 >     * @throws IllegalArgumentException if {@code nThreads <= 0}
58       */
59      public static ExecutorService newFixedThreadPool(int nThreads) {
60          return new ThreadPoolExecutor(nThreads, nThreads,
# Line 79 | Line 79 | public class Executors {
79       * @param threadFactory the factory to use when creating new threads
80       * @return the newly created thread pool
81       * @throws NullPointerException if threadFactory is null
82 <     * @throws IllegalArgumentException if <tt>nThreads &lt;= 0</tt>
82 >     * @throws IllegalArgumentException if {@code nThreads <= 0}
83       */
84      public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) {
85          return new ThreadPoolExecutor(nThreads, nThreads,
# Line 213 | Line 213 | public class Executors {
213       * @param corePoolSize the number of threads to keep in the pool,
214       * even if they are idle.
215       * @return a newly created scheduled thread pool
216 <     * @throws IllegalArgumentException if <tt>corePoolSize &lt; 0</tt>
216 >     * @throws IllegalArgumentException if {@code corePoolSize < 0}
217       */
218      public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize) {
219          return new ScheduledThreadPoolExecutor(corePoolSize);
# Line 227 | Line 227 | public class Executors {
227       * @param threadFactory the factory to use when the executor
228       * creates a new thread.
229       * @return a newly created scheduled thread pool
230 <     * @throws IllegalArgumentException if <tt>corePoolSize &lt; 0</tt>
230 >     * @throws IllegalArgumentException if {@code corePoolSize < 0}
231       * @throws NullPointerException if threadFactory is null
232       */
233      public static ScheduledExecutorService newScheduledThreadPool(

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines