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:[EMAIL PROTECTED]">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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]