This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: gnu.java.lang.ArrayHelper


Hi list,


I commited the attached patch with removes the method equalsArray() from 
gnu.java.lang.ArrayHelper. This method wasn't used anywhere in libgcj and 
could be replaced by java.util.Arrays.equals() anyway.


Michael


2004-01-09  Michael Koch  <konqueror@gmx.de>

	* gnu/java/lang/ArrayHelper.java
	(equalsArray): Removed.

Index: gnu/java/lang/ArrayHelper.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/lang/ArrayHelper.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 ArrayHelper.java
--- gnu/java/lang/ArrayHelper.java	2 Aug 2003 09:15:05 -0000	1.4
+++ gnu/java/lang/ArrayHelper.java	9 Jan 2004 17:17:16 -0000
@@ -75,23 +75,4 @@
       }
     return -1;
   }
-
-  /**
-   * Checks if two arrays are equal.
-   *
-   * @param array1 the first array
-   * @param array2 the second array
-   * @return true if both arrays are equal.
-   */
-  public static boolean equalsArray(Object[] array1, Object[] array2)
-  {
-    if (array1.length != array2.length)
-      return false;
-
-    for (int index = 0; index < array1.length; index++)
-      if (!array1 [index].equals (array2 [index]))
-	return false;
-	
-    return true;
-  }
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]