mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
more java tests moved to community
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Surround with 'if (i != null)'" "true"
|
||||
class A {
|
||||
void foo(){
|
||||
String i = null;
|
||||
if (i != null<caret>) {
|
||||
i.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Surround with 'if (s != null)'" "true"
|
||||
class A {
|
||||
void foo(){
|
||||
String s = null;
|
||||
if (s != null<caret>) {
|
||||
for (int i=0; i!=s.hashCode();i++){}
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Surround with 'if (i != null)'" "true"
|
||||
class A {
|
||||
void foo(){
|
||||
String i = null;
|
||||
<caret>i.hashCode();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Surround with 'if (s != null)'" "true"
|
||||
class A {
|
||||
void foo(){
|
||||
String s = null;
|
||||
for (int i=0; i!=<caret>s.hashCode();i++){}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Surround with 'if (s != null)'" "false"
|
||||
class A {
|
||||
void foo(){
|
||||
String s = null;
|
||||
for (int i=<caret>s.toString().hashCode(); i==0; ) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user