mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 21:52:48 +07:00
GitOrigin-RevId: 8d69b91a86cbc228935ee8906201d3597af961f5
16 lines
362 B
Java
16 lines
362 B
Java
import java.util.List;
|
|
|
|
final class MainTest {
|
|
int x = 0;
|
|
|
|
void increment() {
|
|
x++;
|
|
}
|
|
|
|
void test(List<String> list) {
|
|
if (list.isEmpty()) return;
|
|
increment(); // mutates this, so should not flush list
|
|
if (<warning descr="Condition 'list.isEmpty()' is always 'false'">list.isEmpty()</warning>) return;
|
|
System.out.println("hello");
|
|
}
|
|
} |