make 'remove loop' fix work for '(false)' and 'for' (IDEA-CR-20896)

This commit is contained in:
peter
2017-05-10 17:11:34 +02:00
parent 23b589d978
commit 932d1215d6
17 changed files with 89 additions and 17 deletions
@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Remove 'if' statement" "true"
class X {
void f() {
int i = 2;
@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Unwrap 'if' statement" "true"
class X {
void f() {
//sdf
@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Unwrap 'if' statement" "true"
class X {
void f(Object pVal, Object n) {
if (!pVal.equals(n))
@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Remove 'if' statement" "true"
class X {
void f() {
int i = 2;
@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Unwrap 'if' statement" "true"
class X {
void f() {
if ((!(!((boolean)true))<caret> ==(true))) {
@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Unwrap 'if' statement" "true"
class X {
void f(Object pVal, Object n) {
if (!pVal.equals(n))