IDEA-67190 (correctly unwrap try statement if it's not in a code block)

This commit is contained in:
Roman Shevchenko
2011-03-29 15:58:52 +02:00
parent 02d71b0230
commit 5d95c304c6
3 changed files with 66 additions and 41 deletions
@@ -0,0 +1,11 @@
// "Delete catch for 'java.io.IOException'" "true"
import java.io.*;
class a {
void f(boolean f) {
if (f) {
System.out.println();
System.out.println();
}
}
}
@@ -0,0 +1,13 @@
// "Delete catch for 'java.io.IOException'" "true"
import java.io.*;
class a {
void f(boolean f) {
if (f)
try {
System.out.println();
System.out.println();
} catch (<caret>IOException e) {
}
}
}