IDEA-211473 Inline method: process some boolean methods with multiple exits specially

GitOrigin-RevId: 5e3bc7e8577a346059192cb7d68bef7eef818ffd
This commit is contained in:
Tagir Valeev
2019-04-23 13:20:13 +03:00
committed by intellij-monorepo-bot
parent 8f4ed82473
commit 92507ef9b6
18 changed files with 426 additions and 41 deletions
@@ -0,0 +1,9 @@
class Test {
String useTest() {
for(int i=0; i<10; i++) {
if (Math.random() > 0.5) return "foo".trim();
}
return "bar".trim();
}
}