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

Method verifyNotNull

output/java_guava/1.4.13/Verify.java:136–139  ·  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

134 */
135
136 @CanIgnoreReturnValue
137 public static <T> T verifyNotNull(@Nullable T reference) {
138 return verifyNotNull(reference, "expected a non-null reference");
139 }
140
141 /**
142 * 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