Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e8c97dc4e7
commit
24e94b5651
|
@ -320,6 +320,7 @@ public class ArrayUtils {
|
|||
*
|
||||
* <p>This method returns {@code null} for a {@code null} input array.</p>
|
||||
*
|
||||
* @param <T> the component type of the array
|
||||
* @param array the array to shallow clone, may be {@code null}
|
||||
* @return the cloned array, {@code null} if {@code null} input
|
||||
*/
|
||||
|
@ -837,6 +838,7 @@ public class ArrayUtils {
|
|||
* Date[] someDates = (Date[])ArrayUtils.subarray(allDates, 2, 5);
|
||||
* </pre>
|
||||
*
|
||||
* @param <T> the component type of the array
|
||||
* @param array the array
|
||||
* @param startIndexInclusive the starting index. Undervalue (<0)
|
||||
* is promoted to 0, overvalue (>array.length) results
|
||||
|
@ -3330,6 +3332,7 @@ public class ArrayUtils {
|
|||
/**
|
||||
* <p>Checks if an array of Objects is not empty or not {@code null}.</p>
|
||||
*
|
||||
* @param <T> the component type of the array
|
||||
* @param array the array to test
|
||||
* @return {@code true} if the array is not empty or not {@code null}
|
||||
* @since 2.5
|
||||
|
@ -3441,6 +3444,7 @@ public class ArrayUtils {
|
|||
* ArrayUtils.addAll(["a", "b", "c"], ["1", "2", "3"]) = ["a", "b", "c", "1", "2", "3"]
|
||||
* </pre>
|
||||
*
|
||||
* @param <T> the component type of the array
|
||||
* @param array1 the first array whose elements are added to the new array, may be {@code null}
|
||||
* @param array2 the second array whose elements are added to the new array, may be {@code null}
|
||||
* @return The new array, {@code null} if both arrays are {@code null}.
|
||||
|
@ -3470,7 +3474,8 @@ public class ArrayUtils {
|
|||
*/
|
||||
final Class<?> type2 = array2.getClass().getComponentType();
|
||||
if (!type1.isAssignableFrom(type2)){
|
||||
throw new IllegalArgumentException("Cannot store "+type2.getName()+" in an array of "+type1.getName(), ase);
|
||||
throw new IllegalArgumentException("Cannot store "+type2.getName()+" in an array of "
|
||||
+type1.getName(), ase);
|
||||
}
|
||||
throw ase; // No, so rethrow original
|
||||
}
|
||||
|
@ -3728,6 +3733,7 @@ public class ArrayUtils {
|
|||
* ArrayUtils.add(["a", "b"], "c") = ["a", "b", "c"]
|
||||
* </pre>
|
||||
*
|
||||
* @param <T> the component type of the array
|
||||
* @param array the array to "add" the element to, may be {@code null}
|
||||
* @param element the object to add, may be {@code null}
|
||||
* @return A new array containing the existing elements plus the new element
|
||||
|
@ -4008,6 +4014,7 @@ public class ArrayUtils {
|
|||
* ArrayUtils.add(["a", "b"], 3, "c") = ["a", "b", "c"]
|
||||
* </pre>
|
||||
*
|
||||
* @param <T> the component type of the array
|
||||
* @param array the array to add the element to, may be {@code null}
|
||||
* @param index the position of the new object
|
||||
* @param element the object to add
|
||||
|
@ -4332,6 +4339,7 @@ public class ArrayUtils {
|
|||
* ArrayUtils.remove(["a", "b", "c"], 1) = ["a", "c"]
|
||||
* </pre>
|
||||
*
|
||||
* @param <T> the component type of the array
|
||||
* @param array the array to remove the element from, may not be {@code null}
|
||||
* @param index the position of the element to be removed
|
||||
* @return A new array containing the existing elements except the element
|
||||
|
@ -4364,6 +4372,7 @@ public class ArrayUtils {
|
|||
* ArrayUtils.removeElement(["a", "b", "a"], "a") = ["b", "a"]
|
||||
* </pre>
|
||||
*
|
||||
* @param <T> the component type of the array
|
||||
* @param array the array to remove the element from, may be {@code null}
|
||||
* @param element the element to be removed
|
||||
* @return A new array containing the existing elements except the first
|
||||
|
|
Loading…
Reference in New Issue