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

This commit is contained in:
peter
2017-05-10 17:10:15 +02:00
parent 23b589d978
commit 932d1215d6
17 changed files with 89 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Remove 'if' statement" "true"
class X {
void f() {
int i = 2;

View File

@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Unwrap 'if' statement" "true"
class X {
void f() {
//sdf

View File

@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Unwrap 'if' statement" "true"
class X {
void f(Object pVal, Object n) {
if (!pVal.equals(n))

View File

@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Remove 'if' statement" "true"
class X {
void f() {
int i = 2;

View File

@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Unwrap 'if' statement" "true"
class X {
void f() {
if ((!(!((boolean)true))<caret> ==(true))) {

View File

@@ -1,4 +1,4 @@
// "Simplify boolean expression" "true"
// "Unwrap 'if' statement" "true"
class X {
void f(Object pVal, Object n) {
if (!pVal.equals(n))