Author: julien(a)jboss.com
Date: 2007-06-03 15:34:32 -0400 (Sun, 03 Jun 2007)
New Revision: 7376
Modified:
trunk/common/src/main/org/jboss/portal/common/util/Tools.java
Log:
minor javadoc
Modified: trunk/common/src/main/org/jboss/portal/common/util/Tools.java
===================================================================
--- trunk/common/src/main/org/jboss/portal/common/util/Tools.java 2007-06-03 19:31:15 UTC
(rev 7375)
+++ trunk/common/src/main/org/jboss/portal/common/util/Tools.java 2007-06-03 19:34:32 UTC
(rev 7376)
@@ -707,7 +707,19 @@
return buffer.toString();
}
- public static Object[] appendTo(Object[] array, Object o)
+ /**
+ * Append an object to an array of object. The original array is not modified. The
returned array
+ * will be of the same component type of the provided array and its first n elements
where n is the size
+ * of the provided array will be the elements of the provided array. The last element
of the array will be
+ * the provided object to append.
+ *
+ * @param array the array to augment
+ * @param o the object to append
+ * @return a new array
+ * @throws IllegalArgumentException if the array is null
+ * @throws ClassCastException if the appended object class prevents it from being
added to the array
+ */
+ public static Object[] appendTo(Object[] array, Object o) throws
IllegalArgumentException, ClassCastException
{
if (array == null)
{
Show replies by date