8301120: Cleanup utility classes java.util.Arrays and java.util.Collections

Reviewed-by: smarks, darcy
This commit is contained in:
Tagir F. Valeev 2023-01-27 19:23:53 +00:00
parent b8e5abc1e8
commit ae0e76d3dd
2 changed files with 22 additions and 28 deletions

View file

@ -25,7 +25,6 @@
package java.util;
import jdk.internal.misc.Unsafe;
import jdk.internal.util.ArraysSupport;
import jdk.internal.vm.annotation.IntrinsicCandidate;
@ -2507,7 +2506,7 @@ public class Arrays {
* @param a2 the other array to be tested for equality
* @return {@code true} if the two arrays are equal
*/
public static boolean equals(short[] a, short a2[]) {
public static boolean equals(short[] a, short[] a2) {
if (a==a2)
return true;
if (a==null || a2==null)