extract method: allow to extract from fragment with different exit points which all are @NotNull

This commit is contained in:
Anna Kozlova
2014-12-03 17:26:32 +01:00
parent 540d9744e5
commit c460d82d7c
5 changed files with 71 additions and 19 deletions
@@ -0,0 +1,12 @@
class Test {
Integer method() {
<selection>try {
if(cond1) return 0;
else if(cond2) return null;
System.out.println("Text");
} finally {
doSomething();
}</selection>
return 12;
}
}