Unused static field AbstractWatchKey#OVERFLOW_EVENT

David Holmes david.holmes at oracle.com
Fri Jul 22 07:50:26 UTC 2022


On 22/07/2022 5:42 pm, Andrey Turbanov wrote:
> Hello.
> I noticed unused field sun.nio.fs.AbstractWatchKey#OVERFLOW_EVENT
> https://github.com/openjdk/jdk/blob/e9f97b2e8cf301ba6b69101e5efc5c71d26bc87b/src/java.base/share/classes/sun/nio/fs/AbstractWatchKey.java#L45
> 
> As I can see, it was already unused in the initial version of
> https://bugs.openjdk.org/browse/JDK-4313887
> Does VM use this field somehow? Or used to use?

Not used by the VM . Seems never used as you indicated.

Cheers,
David

> Andrey Turbanov


More information about the core-libs-dev mailing list