public static void notEmpty(Object[] array, String message) {
        if (array == null || array.length == 0) {
            throw new IllegalArgumentException(message);
        }
    }
Assert that an array has elements; that is, it must not be
<code>null</code> and must have at least one element.
<pre class="code">Assert.notEmpty(array, "The array must have elements");</pre>
@param array the array to check
@param message the exception message to use if the assertion fails
@throws IllegalArgumentException if the object array is <code>null</code> or has no elements
src/main/java/org/apache/shiro/lang/util/Assert.java