private static List < Class < ? extends Exception > > wrapExceptions ( final Class < ? extends Exception > ... list ) { return list . length == 0 ? null : Arrays . asList ( list ) ; }
Avoid creation of empty list .