Skip to content

Commit 6330d04

Browse files
committed
Change code to find Jacoco problem with coverage
1 parent 51dc47d commit 6330d04

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/main/java/org/utplsql/maven/plugin/util/StringUtil.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ private StringUtil() {
66
}
77

88
public static boolean isEmpty(CharSequence cs) {
9-
return cs == null || cs.length() == 0;
9+
if (cs == null) {
10+
return true;
11+
}
12+
if (cs.length() == 0) {
13+
return true;
14+
}
15+
return false;
1016
}
1117

1218
public static boolean isNotEmpty(CharSequence cs) {
@@ -15,10 +21,12 @@ public static boolean isNotEmpty(CharSequence cs) {
1521

1622
public static boolean isBlank(CharSequence cs) {
1723
int strLen;
18-
if (cs != null && (strLen = cs.length()) != 0) {
19-
for (int i = 0; i < strLen; ++i) {
20-
if (!Character.isWhitespace(cs.charAt(i))) {
21-
return false;
24+
if (cs != null) {
25+
if ((strLen = cs.length()) != 0) {
26+
for (int i = 0; i < strLen; ++i) {
27+
if (!Character.isWhitespace(cs.charAt(i))) {
28+
return false;
29+
}
2230
}
2331
}
2432
}

0 commit comments

Comments
 (0)