Skip to content

Commit b381630

Browse files
committed
Replaced all instances of str.length() == 0 with str.isEmpty() (#155).
1 parent 73464cb commit b381630

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/gitlab4j/api/TestGitLabLogin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ public static void setup() {
4848

4949
problems = "";
5050

51-
if (TEST_LOGIN_USERNAME == null || TEST_LOGIN_USERNAME.trim().length() == 0) {
51+
if (TEST_LOGIN_USERNAME == null || TEST_LOGIN_USERNAME.trim().isEmpty()) {
5252
problems += "TEST_LOGIN_USERNAME cannot be empty\n";
5353
}
5454

55-
if (TEST_LOGIN_PASSWORD == null || TEST_LOGIN_PASSWORD.trim().length() == 0) {
55+
if (TEST_LOGIN_PASSWORD == null || TEST_LOGIN_PASSWORD.trim().isEmpty()) {
5656
problems += "TEST_LOGIN_PASSWORD cannot be empty\n";
5757
}
5858

59-
if (TEST_HOST_URL == null || TEST_HOST_URL.trim().length() == 0) {
59+
if (TEST_HOST_URL == null || TEST_HOST_URL.trim().isEmpty()) {
6060
problems += "TEST_HOST_URL cannot be empty\n";
6161
}
6262

63-
if (TEST_PRIVATE_TOKEN == null || TEST_PRIVATE_TOKEN.trim().length() == 0) {
63+
if (TEST_PRIVATE_TOKEN == null || TEST_PRIVATE_TOKEN.trim().isEmpty()) {
6464
problems += "TEST_PRIVATE_TOKEN cannot be empty\n";
6565
}
6666

0 commit comments

Comments
 (0)