On Wed, 29 Mar 2023 08:13:06 GMT, Per Minborg <pminb...@openjdk.org> wrote:

> Non-instantiable utility classes should be declared `final` and have a 
> private constructors. 
> 
> See Effective Java, Third Edition, Joshua Bloch (for example, Item 19 or Item 
> 22).

The CSR implies that java.util.Arrays has a non-private constructor but it does.
The CSR should mention that the constructor is private and the Array cannot be 
subclassed as part of the compatibility comments.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13221#issuecomment-1488909617

Reply via email to