mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-08 11:05:09 +00:00
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 static Boolean[] toObject(boolean[] array) {
|
||||
* @return <code>true</code> if the array is empty or <code>null</code>
|
||||
* @since 2.1
|
||||
*/
|
||||
public static boolean isEmpty(Object[] array) {
|
||||
public static <T> boolean isEmpty(T[] array) {
|
||||
if (array == null || array.length == 0) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user