Skip to content

Commit 512f099

Browse files
committed
Add one more UseStringIsEmptyTest test case
1 parent 27f3c95 commit 512f099

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/org/openrewrite/java/migrate/lang/UseStringIsEmptyTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void m(String s) {
4242
boolean c = 0 < s.length();
4343
boolean d = 0 != s.length();
4444
boolean e = s.length() != 0;
45+
boolean f = (s + "!").length() != 0;
4546
}
4647
}
4748
""",
@@ -52,6 +53,7 @@ void m(String s) {
5253
boolean c = !s.isEmpty();
5354
boolean d = !s.isEmpty();
5455
boolean e = !s.isEmpty();
56+
boolean f = !(s + "!").isEmpty();
5557
}
5658
}
5759
"""

0 commit comments

Comments
 (0)