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

13 lines
229 B
Java

class Test {
boolean check(String s) {
if (s == null) return false;
s = s.trim();
if (s.isEmpty()) return false;
return s.length() % 2 == 0;
}
boolean use(String s) {
return !<caret>check(s + s);
}
}