Reuse own API

This commit is contained in:
Gary Gregory 2022-10-15 17:55:54 -04:00
parent 273a6bd20e
commit 5f1d7055ec

View File

@ -637,7 +637,7 @@ private void checkTokenized() {
* @return the modifiable list of String tokens, unmodifiable if null array or zero count * @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) { 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(); return Collections.emptyList();
} }
final StrBuilder buf = new StrBuilder(); final StrBuilder buf = new StrBuilder();