MCPcopy Index your code
hub / github.com/google/dagger / checkNotNull

Method checkNotNull

java/dagger/internal/Preconditions.java:31–36  ·  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

29 * @throws NullPointerException if {@code reference} is null
30 */
31 public static <T> T checkNotNull(T reference) {
32 if (reference == null) {
33 throw new NullPointerException();
34 }
35 return reference;
36 }
37
38 /**
39 * Ensures that an object reference passed as a parameter to the calling method is not null.

Callers 15

JavaFileBuilderMethod · 0.80
InProcessServerModuleMethod · 0.80
typeMethod · 0.80
qualifierMethod · 0.80
ForwardingNetworkMethod · 0.80
injectMethod · 0.80
maybeInjectMethod · 0.80
injectMethod · 0.80
putMethod · 0.80
providerMethod · 0.80
lazyMethod · 0.80

Calls 2

containsMethod · 0.80
valueOfMethod · 0.80

Tested by 1

JavaFileBuilderMethod · 0.64