Reuse own API

This commit is contained in:
Gary Gregory 2022-10-15 17:55:54 -04:00
parent 273a6bd20e
commit 5f1d7055ec
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ public class StrTokenizer implements ListIterator<String>, Cloneable {
* @return the modifiable list of String tokens, unmodifiable if null array or zero count
*/
protected List<String> tokenize(final char[] srcChars, final int offset, final int count) {
if (srcChars == null || count == 0) {
if (ArrayUtils.isEmpty(srcChars)) {
return Collections.emptyList();
}
final StrBuilder buf = new StrBuilder();