mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
13 lines
331 B
Java
13 lines
331 B
Java
import java.util.Set;
|
|
|
|
// "Extract Set from comparison chain" "true-preview"
|
|
public class Test {
|
|
private static final Set<String> PROPERTIES = Set.of("foo", "bar", "baz");
|
|
|
|
void testOr(int i, String property) {
|
|
if(i > 0 || PROPERTIES.contains(property) || i == -10) {
|
|
System.out.println("foobarbaz");
|
|
}
|
|
}
|
|
}
|