public static void isNotZeroLength ( String argument , String name ) { isNotNull ( argument , name ) ; if ( argument . length ( ) <= 0 ) { throw new IllegalArgumentException ( CommonI18n . argumentMayNotBeNullOrZeroLength . text ( name ) ) ; } }
Check that the string is non - null and has length > 0