You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2005/02/04 03:32:45 UTC

svn commit: r151294 - jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java

Author: bayard
Date: Thu Feb  3 18:32:43 2005
New Revision: 151294

URL: http://svn.apache.org/viewcvs?view=rev&rev=151294
Log:
added javadoc to private method, as per checkstyle

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=151293&r2=151294
==============================================================================
--- 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 Thu Feb  3 18:32:43 2005
@@ -44,7 +44,7 @@
  * @author <a href="mailto:equinus100@hotmail.com">Ashwin S</a>
  * @author Maarten Coene
  * @since 2.0
- * @version $Id: ArrayUtils.java,v 1.51 2005/01/27 06:43:20 bayard Exp $
+ * @version $Id$
  */
 public class ArrayUtils {
 
@@ -3683,6 +3683,17 @@
         return (double[]) add( (Object) array, index, new Double(element), Double.TYPE );
     }
     
+    /**
+     * Underlying implementation of add(array, index, element) methods. 
+     * The last parameter is the class, which may not equal element.getClass 
+     * for primitives.
+     *
+     * @param array  the array to add the element to, may be <code>null</code>
+     * @param index  the position of the new object
+     * @param element  the object to add
+     * @param clss the type of the element being added
+     * @return A new array containing the existing elements and the new element
+     */
     private static Object add(Object array, int index, Object element, Class clss) {
         if (array == null) {
             if (index != 0) {



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