mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
more java tests moved to community
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
<caret>return;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
<caret>return;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
int i = 0<caret>;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
int i = 2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
int i = 2;
|
||||
// begin
|
||||
int o = 0; //mid
|
||||
// end
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
//sdf
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f(boolean b) {
|
||||
if (!b) return;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
if (false || <caret>true || this == null) return;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
if (false || (<caret>true && !(false))|| this == null) return;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
int i = 2;
|
||||
if (false<caret> && i==0) {
|
||||
//sdf
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f() {
|
||||
if ((!(!((boolean)true))<caret> ==(true))) {
|
||||
//sdf
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify boolean expression" "true"
|
||||
class X {
|
||||
void f(boolean b) {
|
||||
if (<caret>b == false) return;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user