Integrated: 8305157: The java.util.Arrays class should be declared final

Per Minborg pminborg at openjdk.org
Thu Mar 30 09:27:44 UTC 2023


On Wed, 29 Mar 2023 08:13:06 GMT, Per Minborg <pminborg at 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).

This pull request has now been integrated.

Changeset: 9df20600
Author:    Per Minborg <pminborg at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9df20600592427550998c6685f103737e3115a51
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8305157: The java.util.Arrays class should be declared final

Reviewed-by: alanb, rriggs, bpb

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

PR: https://git.openjdk.org/jdk/pull/13221


More information about the core-libs-dev mailing list