MCPcopy Index your code
hub / github.com/graphql-java/graphql-java / assertNotNull

Method assertNotNull

src/main/java/graphql/Assert.java:30–36  ·  view source on GitHub ↗
(@Nullable T object)

Source from the content-addressed store, hash-verified

28 }
29
30 @Contract("null -> fail")
31 public static <T> T assertNotNull(@Nullable T object) {
32 if (object != null) {
33 return object;
34 }
35 return throwAssert("Object required to be not null");
36 }
37
38 @Contract("null,_ -> fail")
39 public static <T> T assertNotNull(@Nullable T object, Supplier<String> msg) {

Callers 15

mkCharacterMethod · 0.95
getOperationTypeMethod · 0.95
shortSummaryMapMethod · 0.95
getExecutionIdNonNullMethod · 0.95
copyOfMethod · 0.95
AbstractNodeMethod · 0.95
readerMethod · 0.95
simplePrintMethod · 0.95
defaultDataFetcherMethod · 0.95

Calls 2

throwAssertMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected