DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26243>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26243 [lang] add isEmpty method to ArrayUtils Summary: [lang] add isEmpty method to ArrayUtils Product: Commons Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: Lang AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, I would like to see a new method added to ArrayUtils which checks if an array is empty or null. This method could look like this: /** * <p>Checks if an array is empty or null.</p> * * @param array the array to check, may be null * @return <code>true</code> if the array is empty or null */ public static boolean isEmpty(final Object[] array) { return (array == null) || (array.length == 0); } is it possible to add such a method? thanks Maarten Coene --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
