MCPcopy Index your code
hub / github.com/antlr/codebuff / checkNotNull

Method checkNotNull

output/java_guava/1.4.19/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

differenceMethod · 0.95
drainMethod · 0.95
drainUninterruptiblyMethod · 0.95
PatternFilenameFilterMethod · 0.95
PairwiseEquivalenceMethod · 0.95
toAddrStringMethod · 0.95
forUriStringNoThrowMethod · 0.95
TimeoutFutureMethod · 0.95
addCallbackMethod · 0.95
composeMethod · 0.95

Calls 2

formatMethod · 0.95
valueOfMethod · 0.45

Tested by 7

copyMethod · 0.36
newDataInputMethod · 0.36
newDataOutputMethod · 0.36
writeMethod · 0.36
LimitedInputStreamMethod · 0.36
readBytesMethod · 0.36
readMethod · 0.36