IDEA-122392 intention: "Create Local Var from instanceof Usage" does not format generated code

This commit is contained in:
Anna Kozlova
2014-03-19 22:02:24 +01:00
parent c9e83b2679
commit b92955274f
3 changed files with 25 additions and 0 deletions
@@ -0,0 +1,13 @@
// "Insert '(IOException)o' declaration" "true"
import java.io.IOException;
class C {
void f(Object o) {
if (o instanceof IOException) {
IOException ioException = (IOException) o;
}
}
}
@@ -0,0 +1,11 @@
// "Insert '(IOException)o' declaration" "true"
import java.io.IOException;
class C {
void f(Object o) {
if (o instanceof IOException) {
<caret>
}
}
}