MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / nonBlank

Method nonBlank

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

Source from the content-addressed store, hash-verified

204 }
205
206 public static String nonBlank(String argName, @Nullable String arg) {
207 nonNull(argName, arg);
208 if (arg.trim().isEmpty()) {
209 throw new IllegalArgumentException(String.format(MUST_NOT_BE_BLANK, argName));
210 }
211 return arg;
212 }
213
214 public static String nonEmpty(String argName, @Nullable String arg) {
215 nonNull(argName, arg);

Callers 3

deleteCookieNamedMethod · 0.95
getCookieNamedMethod · 0.95
createAdapterMethod · 0.95

Calls 3

nonNullMethod · 0.95
isEmptyMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected