jdk/src/share/classes/java/lang/ThreadLocal.java
changeset 18776 c17100862d86
parent 14770 1b609703adbf
child 22581 e868cde95050
--- a/jdk/src/share/classes/java/lang/ThreadLocal.java	Wed Jul 03 19:47:15 2013 -0400
+++ b/jdk/src/share/classes/java/lang/ThreadLocal.java	Wed Jul 03 17:08:14 2013 -0700
@@ -131,12 +131,13 @@
      * Creates a thread local variable. The initial value of the variable is
      * determined by invoking the {@code get} method on the {@code Supplier}.
      *
+     * @param <S> the type of the thread local's value
      * @param supplier the supplier to be used to determine the initial value
      * @return a new thread local variable
      * @throws NullPointerException if the specified supplier is null
      * @since 1.8
      */
-    public static <T> ThreadLocal<T> withInitial(Supplier<? extends T> supplier) {
+    public static <S> ThreadLocal<S> withInitial(Supplier<? extends S> supplier) {
         return new SuppliedThreadLocal<>(supplier);
     }