8321470: ThreadLocal.nextHashCode can be static final

Reviewed-by: shade, jpai
This commit is contained in:
Brett Okken 2023-12-07 13:02:40 +00:00 committed by Aleksey Shipilev
parent 42bb852696
commit c42535f111

View file

@ -97,7 +97,7 @@ public class ThreadLocal<T> {
* The next hash code to be given out. Updated atomically. Starts at * The next hash code to be given out. Updated atomically. Starts at
* zero. * zero.
*/ */
private static AtomicInteger nextHashCode = private static final AtomicInteger nextHashCode =
new AtomicInteger(); new AtomicInteger();
/** /**