mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-10 20:15:00 +00:00
Reuse own API
This commit is contained in:
parent
273a6bd20e
commit
5f1d7055ec
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user