Re: ThreadLocal nextHashCode

2023-12-05 Thread Aleksey Shipilev

On 05.12.23 21:02, Brett Okken wrote:

Should the private static AtomicInteger nextHashCode also be final?

https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/ThreadLocal.java#L100


Yes, I think so. Feel free to submit a PR!

-Aleksey



Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879




ThreadLocal nextHashCode

2023-12-05 Thread Brett Okken
Should the private static AtomicInteger nextHashCode also be final?

https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/ThreadLocal.java#L100