src/share/classes/java/lang/ThreadLocal.java

Print this page

        

@@ -45,12 +45,12 @@
  * public class ThreadId {
  *     // Atomic integer containing the next thread ID to be assigned
  *     private static final AtomicInteger nextId = new AtomicInteger(0);
  *
  *     // Thread local variable containing each thread's ID
- *     private static final ThreadLocal<Integer> threadId =
- *         new ThreadLocal<Integer>() {
+ *     private static final ThreadLocal<Integer> threadId =
+ *         new ThreadLocal<Integer>() {
  *             @Override protected Integer initialValue() {
  *                 return nextId.getAndIncrement();
  *         }
  *     };
  *

@@ -220,11 +220,10 @@
      * Create the map associated with a ThreadLocal. Overridden in
      * InheritableThreadLocal.
      *
      * @param t the current thread
      * @param firstValue value for the initial entry of the map
-     * @param map the map to store.
      */
     void createMap(Thread t, T firstValue) {
         t.threadLocals = new ThreadLocalMap(this, firstValue);
     }