The following document contains the results of PMD's CPD 4.2.5.
File | Line |
---|---|
net/sf/staccatocommons/check/Assert.java | 48 |
net/sf/staccatocommons/check/Ensure.java | 50 |
return that().fail(message, args); } /** * Shortcut to * <code>Ensure.that().is(varName,var,condition,message,args)</code> * * @see Check#thatVar(String, Object, boolean, String, Object...) */ public static void thatVar(String varName, Object var, boolean condition, String message, Object... messageArgs) { that().thatVar(varName, var, condition, message, messageArgs); } /** * Shortcut to <code>Ensure.that().is(condition,message,args)</code> * * @see Check#that(boolean, String, Object...) */ public static void that(boolean condition, String message, Object... messageArgs) { that().that(condition, message, messageArgs); } /** * Shortcut to <code>Ensure.that().isNotNull(variableName, variable)</code> * * @see Check#isNotNull(String, Object) */ public static void isNotNull(String variableName, Object variable) { that().isNotNull(variableName, variable); } /** * Shortcut to <code>Ensure.that().isNull(variableName, variable)</code> * * @see Check#isNull(String, Object) */ public static void isNull(String variableName, Object variable) { that().isNull(variableName, variable); } /** * @return a singleton {@link Check} that throws * {@link IllegalArgumentException}s on check failure */ public static Check<IllegalArgumentException> that() { |