Skip to content

Commit 324e32f

Browse files
Satyen SubramaniamPaul Hohensee
authored andcommitted
8321470: ThreadLocal.nextHashCode can be static final
Backport-of: c42535f1110d60d1472080ad4fcadb8acbeb4c4b
1 parent 4b1365e commit 324e32f

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)