Skip to content

Commit c42535f

Browse files
bokkenshipilev
authored andcommitted
8321470: ThreadLocal.nextHashCode can be static final
Reviewed-by: shade, jpai
1 parent 42bb852 commit c42535f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public class ThreadLocal<T> {
9797
* The next hash code to be given out. Updated atomically. Starts at
9898
* zero.
9999
*/
100-
private static AtomicInteger nextHashCode =
100+
private static final AtomicInteger nextHashCode =
101101
new AtomicInteger();
102102

103103
/**

0 commit comments

Comments
 (0)