MCPcopy Create free account
hub / github.com/antlr/codebuff / verify

Method verify

corpus/java/training/guava/base/Verify.java:98–102  ·  view source on GitHub ↗

Ensures that expression is true, throwing a VerifyException with no message otherwise. @throws VerifyException if expression is false

(boolean expression)

Source from the content-addressed store, hash-verified

96 * @throws VerifyException if {@code expression} is {@code false}
97 */
98 public static void verify(boolean expression) {
99 if (!expression) {
100 throw new VerifyException();
101 }
102 }
103
104 /**
105 * Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with a

Callers 1

verifyNotNullMethod · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected