use of junit internal StringUtils is causing build issues

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911519 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2023-08-07 19:11:54 +00:00
parent 3b9a7c42c1
commit ac9da84c86
1 changed files with 6 additions and 4 deletions

View File

@ -275,10 +275,12 @@ public class TestAllFiles {
} }
private static boolean isBlank(final String str) { private static boolean isBlank(final String str) {
final int strLen = str.length(); if (str != null) {
for (int i = 0; i < strLen; i++) { final int strLen = str.length();
if (!Character.isWhitespace(str.charAt(i))) { for (int i = 0; i < strLen; i++) {
return false; if (!Character.isWhitespace(str.charAt(i))) {
return false;
}
} }
} }
return true; return true;