more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 10:48:17 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f() {
<caret>return;
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f() {
<caret>return;
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f() {
int i = 0<caret>;
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f() {
int i = 2;
}
}

View File

@@ -0,0 +1,9 @@
// "Simplify boolean expression" "true"
class X {
void f() {
int i = 2;
// begin
int o = 0; //mid
// end
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f() {
//sdf
}
}

View File

@@ -0,0 +1,8 @@
// "Simplify boolean expression" "true"
class X {
void f(Object pVal, Object n) {
if (!pVal.equals(n))
pVal = null;
else <caret>pVal = n;
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f(boolean b) {
if (!b) return;
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f() {
if (false || <caret>true || this == null) return;
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f() {
if (false || (<caret>true && !(false))|| this == null) return;
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f() {
int i = !(!false && true) || <caret>(true ? true & true : !!false | false) || this == null ? 0 : 1;
}
}

View File

@@ -0,0 +1,9 @@
// "Simplify boolean expression" "true"
class X {
void f() {
int i = 2;
if (false<caret> && i==0) {
//sdf
}
}
}

View File

@@ -0,0 +1,14 @@
// "Simplify boolean expression" "true"
class X {
void f() {
int i = 2;
if (false<caret> !=false) {
//sdf
}
else {
// begin
int o = 0; //mid
// end
}
}
}

View File

@@ -0,0 +1,8 @@
// "Simplify boolean expression" "true"
class X {
void f() {
if ((!(!((boolean)true))<caret> ==(true))) {
//sdf
}
}
}

View File

@@ -0,0 +1,9 @@
// "Simplify boolean expression" "true"
class X {
void f(Object pVal, Object n) {
if (!pVal.equals(n))
pVal = null;
else if (<caret>true==true)
pVal = n;
}
}

View File

@@ -0,0 +1,6 @@
// "Simplify boolean expression" "true"
class X {
void f(boolean b) {
if (<caret>b == false) return;
}
}