提交 ac9da84c 编写于 作者: P PJ Fanning

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
上级 3b9a7c42
...@@ -275,10 +275,12 @@ public class TestAllFiles { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册