MCPcopy Index your code
hub / github.com/OpenFeign/feign / checkNotNull

Method checkNotNull

core/src/main/java/feign/Util.java:106–113  ·  view source on GitHub ↗

Copy of com.google.common.base.Preconditions#checkNotNull.

(
      T reference, String errorMessageTemplate, Object... errorMessageArgs)

Source from the content-addressed store, hash-verified

104
105 /** Copy of {@code com.google.common.base.Preconditions#checkNotNull}. */
106 public static <T> T checkNotNull(
107 T reference, String errorMessageTemplate, Object... errorMessageArgs) {
108 if (reference == null) {
109 // If either of these parameters is null, the right thing happens anyway
110 throw new NullPointerException(format(errorMessageTemplate, errorMessageArgs));
111 }
112 return reference;
113 }
114
115 /** Copy of {@code com.google.common.base.Preconditions#checkState}. */
116 public static void checkState(

Callers 15

CountingInputStreamMethod · 0.95
toByteArrayMethod · 0.95
copyMethod · 0.95
decodeOrDefaultMethod · 0.95
CountingInputStreamMethod · 0.95
asReaderMethod · 0.95
Http2ClientMethod · 0.95
CountingInputStreamMethod · 0.95
asReaderMethod · 0.95

Calls 1

formatMethod · 0.80