commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r155846 - jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java
Date Wed, 02 Mar 2005 00:33:29 GMT
Author: ggregory
Date: Tue Mar  1 16:33:28 2005
New Revision: 155846

URL: http://svn.apache.org/viewcvs?view=rev&rev=155846
Log:
Remove unnecessary casts.

Modified:
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java?view=diff&r1=155845&r2=155846
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java Tue
Mar  1 16:33:28 2005
@@ -3431,7 +3431,7 @@
         } else {
             return new Object[] { null };
         }
-        return (Object[]) add( (Object) array, index, element, clss );
+        return (Object[]) add( array, index, element, clss );
     }
     
     /**
@@ -3462,7 +3462,7 @@
      * (index < 0 || index > array.length).
      */
     public static boolean[] add(boolean[] array, int index, boolean element) {
-        return (boolean[]) add( (Object) array, index, new Boolean(element), Boolean.TYPE
);
+        return (boolean[]) add( array, index, new Boolean(element), Boolean.TYPE );
     }
     
     /**
@@ -3494,7 +3494,7 @@
      * (index < 0 || index > array.length).
      */
     public static char[] add(char[] array, int index, char element) {
-        return (char[]) add( (Object) array, index, new Character(element), Character.TYPE
);
+        return (char[]) add( array, index, new Character(element), Character.TYPE );
     }
     
     /**
@@ -3525,7 +3525,7 @@
      * (index < 0 || index > array.length).
      */
     public static byte[] add(byte[] array, int index, byte element) {
-        return (byte[]) add( (Object) array, index, new Byte(element), Byte.TYPE );
+        return (byte[]) add( array, index, new Byte(element), Byte.TYPE );
     }
     
     /**
@@ -3556,7 +3556,7 @@
      * (index < 0 || index > array.length).
      */
     public static short[] add(short[] array, int index, short element) {
-        return (short[]) add( (Object) array, index, new Short(element), Short.TYPE );
+        return (short[]) add( array, index, new Short(element), Short.TYPE );
     }
     
     /**
@@ -3587,7 +3587,7 @@
      * (index < 0 || index > array.length).
      */
     public static int[] add(int[] array, int index, int element) {
-        return (int[]) add( (Object) array, index, new Integer(element), Integer.TYPE );
+        return (int[]) add( array, index, new Integer(element), Integer.TYPE );
     }
     
     /**
@@ -3618,7 +3618,7 @@
      * (index < 0 || index > array.length).
      */
     public static long[] add(long[] array, int index, long element) {
-        return (long[]) add( (Object) array, index, new Long(element), Long.TYPE );
+        return (long[]) add( array, index, new Long(element), Long.TYPE );
     }
     
     /**
@@ -3649,7 +3649,7 @@
      * (index < 0 || index > array.length).
      */
     public static float[] add(float[] array, int index, float element) {
-        return (float[]) add( (Object) array, index, new Float(element), Float.TYPE );
+        return (float[]) add( array, index, new Float(element), Float.TYPE );
     }
     
     /**
@@ -3680,7 +3680,7 @@
      * (index < 0 || index > array.length).
      */
     public static double[] add(double[] array, int index, double element) {
-        return (double[]) add( (Object) array, index, new Double(element), Double.TYPE );
+        return (double[]) add( array, index, new Double(element), Double.TYPE );
     }
     
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message