mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
11 lines
313 B
Java
11 lines
313 B
Java
// "Extract Set from comparison chain" "true-preview"
|
|
import java.util.Objects;
|
|
|
|
public class Test {
|
|
void testOr(String s) {
|
|
if(Objects.equals(s, null) || "foo"<caret>.equals(s) || s.equals("bar") || Objects.equals("baz", s) || Objects.equals(s, "quz")) {
|
|
System.out.println("foobarbaz");
|
|
}
|
|
}
|
|
}
|