mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
more java tests moved to community
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
if (this instanceof Runnable) {
|
||||
Runnable runnable = (Runnable) this;
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
if (!(this instanceof Runnable)) {
|
||||
return;
|
||||
}
|
||||
Runnable runnable = (Runnable) this;
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
while (!(this instanceof Runnable)) {
|
||||
//return;
|
||||
}
|
||||
Runnable runnable = (Runnable) this;
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
while (this instanceof Runnable) {
|
||||
Runnable runnable = (Runnable) this;
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
if (this instanceof Runnable) {
|
||||
Runnable runnable = (Runnable) this;
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Insert '(String)s' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
String s = "";
|
||||
if (s instanceof String) {
|
||||
String s1 = (String) s;
|
||||
<caret>
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Insert '(String)o' declaration" "true"
|
||||
class C {
|
||||
void f(Object o) {
|
||||
if (o instanceof String) {
|
||||
String s = (String) o;
|
||||
<caret>
|
||||
o = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
if (this <caret>instanceof Runnable)
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
if (!(this instanceof <caret>Runnable)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
while (!(<caret>this instanceof Runnable)) {
|
||||
//return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
while (<caret>this instanceof Runnable
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Insert '(Runnable)this' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
if (this instanceof Runnable) { <caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Insert '(Runnable)this' declaration" "false"
|
||||
class C {
|
||||
void f() {
|
||||
if (this instanceof Runnable<caret>) {
|
||||
Object o = (Runnable)this;
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Insert '(String)s' declaration" "true"
|
||||
class C {
|
||||
void f() {
|
||||
String s = "";
|
||||
if (s instanceof String) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Insert '(String)o' declaration" "true"
|
||||
class C {
|
||||
void f(Object o) {
|
||||
if (o instanceof String<caret>)
|
||||
o = "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user