mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
dfa: IDEA-146950 "<" expr is always false but "<=" is not
This commit is contained in:
+7
-2
@@ -1,5 +1,3 @@
|
||||
import java.util.Arrays;
|
||||
|
||||
class Test {
|
||||
int[] mIndex = null;
|
||||
int mSize = 0;
|
||||
@@ -13,4 +11,11 @@ class Test {
|
||||
|
||||
mIndex[0] = -1;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
int time = 99;
|
||||
String str = <warning descr="Condition 'time < 0' is always 'false'">time < 0</warning> ? "" : "";
|
||||
String str1 = <warning descr="Condition 'time <= 0' is always 'false'">time <= 0</warning> ? "" : "";
|
||||
String str2 = <warning descr="Condition 'time >= 100' is always 'false'">time >= 100</warning> ? "" : "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user