more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 12:46:40 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions
@@ -0,0 +1,9 @@
// "Surround with 'if (i != null)'" "true"
class A {
void foo(){
String i = null;
if (i != null<caret>) {
i.hashCode();
}
}
}
@@ -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++){}
}
}
}
@@ -0,0 +1,7 @@
// "Surround with 'if (i != null)'" "true"
class A {
void foo(){
String i = null;
<caret>i.hashCode();
}
}
@@ -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++){}
}
}
@@ -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; ) {}
}
}