< prev index next >

src/java.base/share/classes/java/util/Arrays.java

Print this page

        

@@ -2713,11 +2713,11 @@
      *
      * @param a one array to be tested for equality
      * @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)
             return false;
 

@@ -4470,11 +4470,11 @@
      *
      * @param a the array whose hash value to compute
      * @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;
 
         int result = 1;
         for (long element : a) {

@@ -4499,11 +4499,11 @@
      *
      * @param a the array whose hash value to compute
      * @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;
 
         int result = 1;
         for (int element : a)

@@ -4526,11 +4526,11 @@
      *
      * @param a the array whose hash value to compute
      * @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;
 
         int result = 1;
         for (short element : a)

@@ -4553,11 +4553,11 @@
      *
      * @param a the array whose hash value to compute
      * @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;
 
         int result = 1;
         for (char element : a)

@@ -4580,11 +4580,11 @@
      *
      * @param a the array whose hash value to compute
      * @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;
 
         int result = 1;
         for (byte element : a)

@@ -4607,11 +4607,11 @@
      *
      * @param a the array whose hash value to compute
      * @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;
 
         int result = 1;
         for (boolean element : a)

@@ -4634,11 +4634,11 @@
      *
      * @param a the array whose hash value to compute
      * @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;
 
         int result = 1;
         for (float element : a)

@@ -4661,11 +4661,11 @@
      *
      * @param a the array whose hash value to compute
      * @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;
 
         int result = 1;
         for (double element : a) {

@@ -4694,11 +4694,11 @@
      * @param a the array whose content-based hash code to compute
      * @return a content-based hash code for {@code a}
      * @see #deepHashCode(Object[])
      * @since 1.5
      */
-    public static int hashCode(Object a[]) {
+    public static int hashCode(Object[] a) {
         if (a == null)
             return 0;
 
         int result = 1;
 

@@ -4735,11 +4735,11 @@
      * @param a the array whose deep-content-based hash code to compute
      * @return a deep-content-based hash code for {@code a}
      * @see #hashCode(Object[])
      * @since 1.5
      */
-    public static int deepHashCode(Object a[]) {
+    public static int deepHashCode(Object[] a) {
         if (a == null)
             return 0;
 
         int result = 1;
 
< prev index next >