-
Bug
-
Resolution: Fixed
-
P3
-
6, 6u23, 6u24
-
b91
-
generic, x86
-
generic, linux, windows_7
6202942 rfe 4 18M 1 Fix Delivered pete.soper java/lang (spec thread) ThreadLocal example should use generics and autoboxing
Comment added by (###@###.###) :
Wouldn't it be slightly better for the example to use getAndIncrement() rather than getAndAdd(1)? And a few finals wouldn't go amiss. And an @Override.
Oh and the HTML is slightly wrong, The disappears, so the example makes even less sense than it did beforehand. {@code } would make source and docs readable.
Comment added by (###@###.###) :
Wouldn't it be slightly better for the example to use getAndIncrement() rather than getAndAdd(1)? And a few finals wouldn't go amiss. And an @Override.
Oh and the HTML is slightly wrong, The disappears, so the example makes even less sense than it did beforehand. {@code } would make source and docs readable.
- duplicates
-
JDK-7017494 Example in java.lang.ThreadLocal documentation is incorrect.
-
- Closed
-
-
JDK-7020229 ThreadLocal javadoc example is broken
-
- Closed
-
-
JDK-7027197 Error in ThreadLocal javadoc example
-
- Closed
-
- relates to
-
JDK-6446082 new test/java/lang/ThreadLocal/TestUniqueThreadIdGenerator.java fails to compile
-
- Resolved
-
-
JDK-6202942 (spec thread) ThreadLocal example should use generics and autoboxing
-
- Resolved
-