Reuse own API

This commit is contained in:
Gary Gregory 2022-10-15 17:53:51 -04:00
parent 0f7db25d60
commit 9aba7b4583
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ package org.apache.commons.lang3.text;
import java.util.Arrays;
import org.apache.commons.lang3.ArraySorter;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
/**
@ -174,7 +175,7 @@ public abstract class StrMatcher {
* @return a new matcher for the given char[]
*/
public static StrMatcher charSetMatcher(final char... chars) {
if (chars == null || chars.length == 0) {
if (ArrayUtils.isEmpty(chars)) {
return NONE_MATCHER;
}
if (chars.length == 1) {