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

Method verifyNotNull

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

Ensures that reference is non-null, throwing a VerifyException with a default message otherwise. @return reference, guaranteed to be non-null, for convenience @throws VerifyException if reference is null

(@Nullable T reference)

Source from the content-addressed store, hash-verified

132 * @throws VerifyException if {@code reference} is {@code null}
133 */
134 @CanIgnoreReturnValue
135 public static <T> T verifyNotNull(@Nullable T reference) {
136 return verifyNotNull(reference, "expected a non-null reference");
137 }
138
139 /**
140 * Ensures that {@code reference} is non-null, throwing a {@code VerifyException} with a custom

Callers

nothing calls this directly

Calls 1

verifyMethod · 0.95

Tested by

no test coverage detected