On Wed, 25 Jan 2023 21:41:37 GMT, Tagir F. Valeev <tval...@openjdk.org> wrote:
> number of minor cleanups could be done in Arrays and Collections utility > classes. > In Arrays: > - Redundant import jdk.internal.misc.Unsafe; > - C-style array declaration is used in public static boolean equals(short[] > a, short a2[]) (that's the only place in the whole file) > > In Collections: > - A few obsolete "unchecked" and "rawtypes" suppressions > - Unnecessary local variable initializer in get() method > - Raw type can be avoided in a number of casts > - Explicit type parameters could be omitted or converted to diamonds > - A couple of javadoc links on private APIs are malformed This pull request has now been integrated. Changeset: ae0e76d3 Author: Tagir F. Valeev <tval...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/ae0e76d3dd42de9e66196843e740e75b06894f1f Stats: 28 lines in 2 files changed: 0 ins; 6 del; 22 mod 8301120: Cleanup utility classes java.util.Arrays and java.util.Collections Reviewed-by: smarks, darcy ------------- PR: https://git.openjdk.org/jdk/pull/12207