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

Method assertNull

src/main/java/graphql/Assert.java:79–85  ·  view source on GitHub ↗
(@Nullable T object, Supplier<String> msg)

Source from the content-addressed store, hash-verified

77
78
79 @Contract("!null,_ -> fail")
80 public static <T> void assertNull(@Nullable T object, Supplier<String> msg) {
81 if (object == null) {
82 return;
83 }
84 throwAssert(msg.get());
85 }
86
87 @Contract("!null,_ -> fail")
88 public static <T> void assertNull(@Nullable T object, String constantMsg) {

Callers 2

mkCharacterMethod · 0.95
deleteNodeMethod · 0.80

Calls 2

throwAssertMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected