Skip to content

Commit

Permalink
8321470: ThreadLocal.nextHashCode can be static final
Browse files Browse the repository at this point in the history
Backport-of: c42535f1110d60d1472080ad4fcadb8acbeb4c4b
  • Loading branch information
Satyen Subramaniam authored and Paul Hohensee committed Nov 19, 2024
1 parent d0949c8 commit ba64383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/lang/ThreadLocal.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class ThreadLocal<T> {
* The next hash code to be given out. Updated atomically. Starts at
* zero.
*/
private static AtomicInteger nextHashCode =
private static final AtomicInteger nextHashCode =
new AtomicInteger();

/**
Expand Down

0 comments on commit ba64383

Please sign in to comment.