Skip to content

Commit bfc194b

Browse files
authored
Update StringUtils.java
changing str.length() == 0 to str.isEmpty()
1 parent 6ed5b10 commit bfc194b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/mastercard/developer/utils/StringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ private StringUtils() {
66
}
77

88
public static boolean isNullOrEmpty(String str) {
9-
return null == str || str.length() == 0;
9+
return null == str || str.isEmpty();
1010
}
11-
}
11+
}

0 commit comments

Comments
 (0)