MCPcopy Index your code
hub / github.com/grpc/grpc-java / checkNotNull

Method checkNotNull

api/src/context/java/io/grpc/Context.java:1069–1075  ·  view source on GitHub ↗
(T reference, Object errorMessage)

Source from the content-addressed store, hash-verified

1067 }
1068
1069 @CanIgnoreReturnValue
1070 static <T> T checkNotNull(T reference, Object errorMessage) {
1071 if (reference == null) {
1072 throw new NullPointerException(String.valueOf(errorMessage));
1073 }
1074 return reference;
1075 }
1076
1077 private enum DirectExecutor implements Executor {
1078 INSTANCE;

Callers 15

withDeadlineMethod · 0.95
detachMethod · 0.95
addListenerMethod · 0.95
newBuilderMethod · 0.80
setLocalSpiffeIdMethod · 0.80
setLocalHostnameMethod · 0.80
setLocalUidMethod · 0.80
setStubMethod · 0.80
createMethod · 0.80
fromSpiffeIdMethod · 0.80
fromHostnameMethod · 0.80

Calls

no outgoing calls

Tested by 15

createBackoffPolicyMethod · 0.64
setLookupTableMethod · 0.64
setLookupTableMethod · 0.64
startMethod · 0.64
startMethod · 0.64
updateAddressesMethod · 0.64
startMethod · 0.64
getBytesToSendToPeerMethod · 0.64
processBytesFromPeerMethod · 0.64
copyMethod · 0.64