Files
openide/java/java-tests/testData/refactoring/inlineMethod/InvertMethod.java.after
Tagir Valeev 364d5bc833 IDEA-211549 Inline method: support negation at the call site
GitOrigin-RevId: d9afdc05a45b153ce23bf5f6e091606f43b050f6
2019-04-28 15:00:48 +03:00

11 lines
214 B
Plaintext

class Test {
boolean use(String s) {
String s1 = s + s;
if (s1 == null) return true;
s1 = s1.trim();
if (s1.isEmpty()) return true;
return s1.length() % 2 != 0;
}
}