MCPcopy
hub / github.com/SeleniumHQ/selenium / nonNull

Method nonNull

java/src/org/openqa/selenium/internal/Require.java:66–71  ·  view source on GitHub ↗
(String argName, @Nullable T arg)

Source from the content-addressed store, hash-verified

64 }
65
66 public static <T> T nonNull(String argName, @Nullable T arg) {
67 if (arg == null) {
68 throw new IllegalArgumentException(String.format(MUST_BE_SET, argName));
69 }
70 return arg;
71 }
72
73 public static <T> T nonNull(String argName, @Nullable T arg, String message, Object... args) {
74 if (arg == null) {

Callers 15

JreSystemPropertyMethod · 0.95
checkPermissionMethod · 0.95
NettyAppServerMethod · 0.95
SeleniumExtensionMethod · 0.95
validateMethod · 0.95
ScriptKeyMethod · 0.95
UsernameAndPasswordMethod · 0.95
ofMethod · 0.95
ImmutableCapabilitiesMethod · 0.95
getCapabilityMethod · 0.95

Calls 2

joinMethod · 0.80
formatMethod · 0.45