mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8272626: Avoid C-style array declarations in java.*
Reviewed-by: dfuchs, alanb
This commit is contained in:
parent
e8f1219d6f
commit
30b0f820ce
54 changed files with 140 additions and 140 deletions
|
@ -4265,7 +4265,7 @@ public class Arrays {
|
|||
* @return a content-based hash code for {@code a}
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(long a[]) {
|
||||
public static int hashCode(long[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4294,7 +4294,7 @@ public class Arrays {
|
|||
* @return a content-based hash code for {@code a}
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(int a[]) {
|
||||
public static int hashCode(int[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4321,7 +4321,7 @@ public class Arrays {
|
|||
* @return a content-based hash code for {@code a}
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(short a[]) {
|
||||
public static int hashCode(short[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4348,7 +4348,7 @@ public class Arrays {
|
|||
* @return a content-based hash code for {@code a}
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(char a[]) {
|
||||
public static int hashCode(char[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4375,7 +4375,7 @@ public class Arrays {
|
|||
* @return a content-based hash code for {@code a}
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(byte a[]) {
|
||||
public static int hashCode(byte[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4402,7 +4402,7 @@ public class Arrays {
|
|||
* @return a content-based hash code for {@code a}
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(boolean a[]) {
|
||||
public static int hashCode(boolean[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4429,7 +4429,7 @@ public class Arrays {
|
|||
* @return a content-based hash code for {@code a}
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(float a[]) {
|
||||
public static int hashCode(float[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4456,7 +4456,7 @@ public class Arrays {
|
|||
* @return a content-based hash code for {@code a}
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(double a[]) {
|
||||
public static int hashCode(double[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4489,7 +4489,7 @@ public class Arrays {
|
|||
* @see #deepHashCode(Object[])
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int hashCode(Object a[]) {
|
||||
public static int hashCode(Object[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
@ -4530,7 +4530,7 @@ public class Arrays {
|
|||
* @see #hashCode(Object[])
|
||||
* @since 1.5
|
||||
*/
|
||||
public static int deepHashCode(Object a[]) {
|
||||
public static int deepHashCode(Object[] a) {
|
||||
if (a == null)
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue