Skip to content

Commit

Permalink
8321470: ThreadLocal.nextHashCode can be static final
Browse files Browse the repository at this point in the history
Reviewed-by: shade, jpai
  • Loading branch information
bokken authored and shipilev committed Dec 7, 2023
1 parent 42bb852 commit c42535f
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 @@ -97,7 +97,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

1 comment on commit c42535f

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.