Reuse own API
This commit is contained in:
parent
0f7db25d60
commit
9aba7b4583
|
@ -19,6 +19,7 @@ package org.apache.commons.lang3.text;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.apache.commons.lang3.ArraySorter;
|
import org.apache.commons.lang3.ArraySorter;
|
||||||
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -174,7 +175,7 @@ public abstract class StrMatcher {
|
||||||
* @return a new matcher for the given char[]
|
* @return a new matcher for the given char[]
|
||||||
*/
|
*/
|
||||||
public static StrMatcher charSetMatcher(final char... chars) {
|
public static StrMatcher charSetMatcher(final char... chars) {
|
||||||
if (chars == null || chars.length == 0) {
|
if (ArrayUtils.isEmpty(chars)) {
|
||||||
return NONE_MATCHER;
|
return NONE_MATCHER;
|
||||||
}
|
}
|
||||||
if (chars.length == 1) {
|
if (chars.length == 1) {
|
||||||
|
|
Loading…
Reference in New Issue