Files
openide/java/java-tests/testData/inspection/dataFlow/tracker/ArrayLength.java
T
Rustam Vishnyakovandintellij-monorepo-bot 123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00

14 lines
283 B
Java

/*
Value is always true (s.length > 0; line#10)
Left operand is >= 1 (s.length; line#10)
Range is known from line #8 (s[0]; line#8)
*/
class Test {
void test(String[] s) {
if (s[0].isEmpty()) return;
if (<selection>s.length > 0</selection>) {
}
}
}