mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IDEA-158693 Returning expression constantly resolving to true not flagged as constant (Constant Conditions & Expressions)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class BrokenAlignment {
|
||||
|
||||
boolean smth() {
|
||||
if (<warning descr="Condition '2 == 2' is always 'true'"><warning descr="Condition '2 == 2' is always 'true'">2 == 2</warning></warning>) {
|
||||
return true;
|
||||
}
|
||||
|
||||
boolean b = <warning descr="Condition '3 == 3' is always 'true'">3 == 3</warning>;
|
||||
|
||||
return <warning descr="Condition '1 == 1' is always 'true'">1 == 1</warning>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user