replace assignment with comparison in condition exps (IDEA-173860)

This commit is contained in:
Anna Kozlova
2017-06-06 17:10:57 +03:00
parent 9ef785f34e
commit 02c718aae8
11 changed files with 140 additions and 22 deletions

View File

@@ -0,0 +1,6 @@
// "Replace '=' with '=='" "true"
class Test {
void f(int a) {
if (a == 0) {}
}
}

View File

@@ -0,0 +1,6 @@
// "Replace '=' with '=='" "false"
class Test {
void f(int a) {
if (a <caret>+= 0) {}
}
}

View File

@@ -0,0 +1,6 @@
// "Replace '=' with '=='" "true"
class Test {
void f(int a) {
if (a <caret>= 0) {}
}
}

View File

@@ -0,0 +1,6 @@
// "Replace '=' with '=='" "false"
class Test {
void f(int a) {
if (a <caret>= ) {}
}
}