mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
replace assignment with comparison in condition exps (IDEA-173860)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Replace '=' with '=='" "true"
|
||||
class Test {
|
||||
void f(int a) {
|
||||
if (a == 0) {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace '=' with '=='" "false"
|
||||
class Test {
|
||||
void f(int a) {
|
||||
if (a <caret>+= 0) {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace '=' with '=='" "true"
|
||||
class Test {
|
||||
void f(int a) {
|
||||
if (a <caret>= 0) {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace '=' with '=='" "false"
|
||||
class Test {
|
||||
void f(int a) {
|
||||
if (a <caret>= ) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user