mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
perform arithmetic operations during dfa (part of IDEA-143315)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class Test {
|
||||
{
|
||||
int a = 0;
|
||||
int b = a;
|
||||
System.out.println(<warning descr="Condition 'a == b' is always 'true'">a == b</warning>);
|
||||
System.out.println(a - b);
|
||||
}
|
||||
|
||||
{
|
||||
int a = 1;
|
||||
int b = -3;
|
||||
System.out.println(<warning descr="Condition 'a == b' is always 'false'">a == b</warning>);
|
||||
if (<warning descr="Condition 'a + b + 2 == 0' is always 'true'">a + b + 2 == 0</warning>) {
|
||||
System.out.println("a");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user