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

Comparing jsr166/src/main/java/util/concurrent/ThreadFactory.java (file contents):
Revision 1.13 by jsr166, Tue Mar 15 19:47:03 2011 UTC vs.
Revision 1.14 by jsr166, Thu Jun 9 07:48:43 2011 UTC

# Line 13 | Line 13 | package java.util.concurrent;
13   *
14   * <p>
15   * The simplest implementation of this interface is just:
16 < * <pre>
16 > *  <pre> {@code
17   * class SimpleThreadFactory implements ThreadFactory {
18   *   public Thread newThread(Runnable r) {
19   *     return new Thread(r);
20   *   }
21 < * }
22 < * </pre>
21 > * }}</pre>
22   *
23   * The {@link Executors#defaultThreadFactory} method provides a more
24   * useful simple implementation, that sets the created thread context

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines