As of JDK 9, calls like new Integer have been deprecated in favour of Integer.valueOf (this is true for the other box types, as well).
While we don't use any constants for these cases, aside from Boolean, we still support these valueOf calls. Given that we haven't yet released and we are targeting a JDK 10 user-space (where these constructors were deprecated in JDK 9), we should restrict access to these constructors.
As of JDK 9, calls like
new Integer
have been deprecated in favour ofInteger.valueOf
(this is true for the other box types, as well).While we don't use any constants for these cases, aside from
Boolean
, we still support thesevalueOf
calls. Given that we haven't yet released and we are targeting a JDK 10 user-space (where these constructors were deprecated in JDK 9), we should restrict access to these constructors.