mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
13 lines
348 B
Java
13 lines
348 B
Java
// "Extract Set from comparison chain" "true-preview"
|
|
public class Test {
|
|
interface Person {
|
|
String getName();
|
|
}
|
|
|
|
void testOr(Person person) {
|
|
if("foo".equals(person.getName()) || "bar".equals(person.getName()) || "baz".equals(person.getName()<caret>) || person.getName() == null) {
|
|
System.out.println("foobarbaz");
|
|
}
|
|
}
|
|
}
|