refine deleteWhitespace (#569)
This commit is contained in:
parent
eaebffb59a
commit
5a17dc7ad3
|
@ -1614,6 +1614,9 @@ public static String deleteWhitespace(final String str) {
|
||||||
if (count == sz) {
|
if (count == sz) {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
if (count == 0) {
|
||||||
|
return EMPTY;
|
||||||
|
}
|
||||||
return new String(chs, 0, count);
|
return new String(chs, 0, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue