commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LANG-504) bring ArrayUtils.isEmpty to the generics world
Date Mon, 18 May 2009 03:23:46 GMT

     [ https://issues.apache.org/jira/browse/LANG-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell closed LANG-504.
------------------------------

    Resolution: Fixed

/Users/hen/apache/commons-proper/lang/src/java/org/apache/commons/lang/StringUtils.java:[1076,38]
<T>isEmpty(T[]) in org.apache.commons.lang.ArrayUtils cannot be applied to (char[])

You'd have thought that would work - but I can see why not. char[] extends Object and not
Object[]. 

Marking this as closed - thanks Pino.

> bring ArrayUtils.isEmpty to the generics world
> ----------------------------------------------
>
>                 Key: LANG-504
>                 URL: https://issues.apache.org/jira/browse/LANG-504
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Pino Silvaggio
>            Priority: Trivial
>             Fix For: 3.0
>
>
> maybe replace the current code by
> [code]
>     public static <T> boolean isEmpty(T[] array)
>     {
>         return ((array == null) || (array.length == 0));
>     }
> [code]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message