Unused static constant MathContext.DEFAULT_DIGITS

David Holmes david.holmes at oracle.com
Fri Feb 18 13:51:50 UTC 2022


On 18/02/2022 7:55 pm, Andrey Turbanov wrote:
> Hello.
> I noticed unused field java.math.MathContext#DEFAULT_DIGITS
> https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/math/MathContext.java#L61
> 
> As I can see, it was already unused in the initial OpenJDK source.
> Does VM use this field somehow? Or used to use?

The VM doesn't use it. Looks like dead code.

Cheers,
David

> Andrey Turbanov


More information about the core-libs-dev mailing list