mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
extend insert declaration/add cast intentions for the one line ref statement (IDEA-90448)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Cast to 'Runnable'" "true"
|
||||
class C {
|
||||
void f(Object o) {
|
||||
if (o instanceof Runnable) {
|
||||
((Runnable) o)<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Cast to 'Runnable'" "false"
|
||||
class C {
|
||||
void f(Object o) {
|
||||
if (!(o instanceof Runnable)) {
|
||||
o<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Cast to 'Runnable'" "true"
|
||||
class C {
|
||||
void f(Object o) {
|
||||
if (o instanceof Runnable) {
|
||||
o<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Insert '(Runnable)o' declaration" "true"
|
||||
class C {
|
||||
void f(Object o) {
|
||||
if (o instanceof Runnable) {
|
||||
Runnable runnable = (Runnable) o;
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Insert '(Runnable)o' declaration" "false"
|
||||
class C {
|
||||
void f(Object o) {
|
||||
if (!(o instanceof Runnable)) {
|
||||
o<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Insert '(Runnable)o' declaration" "true"
|
||||
class C {
|
||||
void f(Object o) {
|
||||
if (o instanceof Runnable) {
|
||||
o<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user