/** * This method throw an IllegalStateException if the given parameter is null * * @param valueToCheck * the value to check * @param msg * the message for the thrown exception * @see IllegalStateException */ public static void badStateIfNull(final Object valueToCheck, final String msg) { badStateIfTrue(valueToCheck == null, msg); }
/** * This method throw an IllegalStateException if the given parameter is null * * @param valueToCheck * the value to check * @param msg * the message for the thrown exception * @see IllegalStateException */ public static void badStateIfNull(final Object valueToCheck, final String msg) { badStateIfTrue(valueToCheck == null, msg); }