create var from instanceOf check: do not insert before previous line end-line comment

This commit is contained in:
Anna Kozlova
2013-08-30 14:20:22 +04:00
parent 7d71ded718
commit 7c56a37bc4
3 changed files with 24 additions and 2 deletions
@@ -0,0 +1,10 @@
// "Insert '(String)o' declaration" "true"
class C {
void f(Object o, Object f) {
if (o instanceof String) {//todo comment
String s = (String) o;
}
}
}
@@ -0,0 +1,8 @@
// "Insert '(String)o' declaration" "true"
class C {
void f(Object o, Object f) {
if (o instanceof String) {//todo comment
<caret>
}
}
}