1 Jun
2022
1 Jun
'22
9:42 a.m.
On Wed, 1 Jun 2022 09:21:43 GMT, Raffaello Giulietti <duke@openjdk.java.net> wrote:
src/java.base/share/classes/jdk/internal/math/DoubleToDecimal.java line 118:
116: private int index; 117: 118: private DoubleToDecimal() {
Maybe add a comment like
/** * Prevent instantiation. */
or
// Prevent instantiation of this class.
The constructor _is_ invoked, so the comment would be inappropriate.
... but I added a `throw` in the constructor of `MathUtils` ------------- PR: https://git.openjdk.java.net/jdk/pull/3402