MCPcopy Create free account
hub / github.com/apache/kafka / notNull

Method notNull

clients/src/main/java/org/apache/kafka/common/utils/Utils.java:219–224  ·  view source on GitHub ↗

Check that the parameter t is not null @param t The object to check @return t if it isn't null @throws NullPointerException if t is null.

(T t)

Source from the content-addressed store, hash-verified

217 * @throws NullPointerException if t is null.
218 */
219 public static <T> T notNull(T t) {
220 if (t == null)
221 throw new NullPointerException();
222 else
223 return t;
224 }
225
226 /**
227 * Instantiate the class

Callers 10

MetricNameMethod · 0.95
ClusterMethod · 0.95
SensorMethod · 0.95
addMethod · 0.95
MetricsMethod · 0.95
getSensorMethod · 0.95
addMetricMethod · 0.95
addReporterMethod · 0.95
appendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected