equal
deleted
inserted
replaced
2880 * |
2880 * |
2881 * @param a one array to be tested for equality |
2881 * @param a one array to be tested for equality |
2882 * @param a2 the other array to be tested for equality |
2882 * @param a2 the other array to be tested for equality |
2883 * @return {@code true} if the two arrays are equal |
2883 * @return {@code true} if the two arrays are equal |
2884 */ |
2884 */ |
|
2885 @HotSpotIntrinsicCandidate |
2885 public static boolean equals(byte[] a, byte[] a2) { |
2886 public static boolean equals(byte[] a, byte[] a2) { |
2886 if (a==a2) |
2887 if (a==a2) |
2887 return true; |
2888 return true; |
2888 if (a==null || a2==null) |
2889 if (a==null || a2==null) |
2889 return false; |
2890 return false; |