Moving isEmpty to generics as per LANG-504
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775797 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
010401200c
commit
9209200145
|
@ -2820,7 +2820,7 @@ public class ArrayUtils {
|
||||||
* @return <code>true</code> if the array is empty or <code>null</code>
|
* @return <code>true</code> if the array is empty or <code>null</code>
|
||||||
* @since 2.1
|
* @since 2.1
|
||||||
*/
|
*/
|
||||||
public static boolean isEmpty(Object[] array) {
|
public static <T> boolean isEmpty(T[] array) {
|
||||||
if (array == null || array.length == 0) {
|
if (array == null || array.length == 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue