mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
IDEA-211473 Inline method: process some boolean methods with multiple exits specially
GitOrigin-RevId: 5e3bc7e8577a346059192cb7d68bef7eef818ffd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8f4ed82473
commit
92507ef9b6
@@ -0,0 +1,17 @@
|
||||
class Test {
|
||||
|
||||
private boolean test(String s) {
|
||||
if(s != null) {
|
||||
s = s.trim();
|
||||
if (s.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
String use(String s) {
|
||||
if(<caret>test(s+s)) throw new IllegalArgumentException();
|
||||
else return "nice";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user