mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 04:43:02 +07:00
Regression was found GitOrigin-RevId: bc2ecf2d55fe1528ce80d4fa9835c8f56d5876ed
13 lines
322 B
Java
13 lines
322 B
Java
import java.util.*;
|
|
|
|
class Test {
|
|
void test(boolean b) {
|
|
Set<String> set1 = new HashSet<>();
|
|
Set<String> set2 = new HashSet<>();
|
|
Set<String> activeSet = b ? set1 : set2;
|
|
activeSet.add("foo");
|
|
if (set1.isEmpty()) {
|
|
if (<warning descr="Condition 'b' is always 'false'">b</warning>) {}
|
|
}
|
|
}
|
|
} |