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

Method isBetterMatch

java/src/org/openqa/selenium/Platform.java:503–505  ·  view source on GitHub ↗

Decides whether the previous match is better or not than the current match. If previous match is null, the newer match is always better. @param previous the previous match @param matcher the newer match @return true if newer match is better, false otherwise

(@Nullable String previous, String matcher)

Source from the content-addressed store, hash-verified

501 * @return true if newer match is better, false otherwise
502 */
503 private static boolean isBetterMatch(@Nullable String previous, String matcher) {
504 return previous == null || matcher.length() >= previous.length();
505 }
506
507 public String[] getPartOfOsName() {
508 return Arrays.copyOf(partOfOsName, partOfOsName.length);

Callers 1

Calls 1

lengthMethod · 0.65

Tested by

no test coverage detected