Files
openide/java/java-tests/testData/refactoring/inlineMethod/BooleanModelSimple.java
Tagir Valeev 92507ef9b6 IDEA-211473 Inline method: process some boolean methods with multiple exits specially
GitOrigin-RevId: 5e3bc7e8577a346059192cb7d68bef7eef818ffd
2019-04-23 13:20:13 +03:00

17 lines
297 B
Java

class Test {
private boolean test(String s) {
if(s != null) {
s = s.trim();
if (s.isEmpty()) {
return true;
}
}
return false;
}
void use(String s) {
if(<caret>test(s+s)) throw new IllegalArgumentException();
System.out.println("woohoo");
}
}