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

Method checkNotNull

output/java_guava/1.4.13/Preconditions.java:823–829  ·  view source on GitHub ↗

Ensures that an object reference passed as a parameter to the calling method is not null. @param reference an object reference @return the non-null reference that was validated @throws NullPointerException if reference is null

(T reference)

Source from the content-addressed store, hash-verified

821 */
822
823 @CanIgnoreReturnValue
824 public static <T> T checkNotNull(T reference) {
825 if (reference == null) {
826 throw new NullPointerException();
827 }
828 return reference;
829 }
830
831 /**
832 * Ensures that an object reference passed as a parameter to the calling method is not null.

Callers 15

PairwiseEquivalenceMethod · 0.95
composeMethod · 0.95
memoizeMethod · 0.95
synchronizedSupplierMethod · 0.95
SimpleForwardingCacheMethod · 0.95
ToStringHelperMethod · 0.45
addHolderMethod · 0.45
orMethod · 0.45
transformMethod · 0.45
andMethod · 0.45

Calls 2

formatMethod · 0.95
valueOfMethod · 0.45

Tested by

no test coverage detected