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)
| 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); |
no test coverage detected