mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 12:20:55 +07:00
14 lines
346 B
Java
14 lines
346 B
Java
// "Extract Set from comparison chain" "true-preview"
|
|
|
|
public class Test {
|
|
enum Status {
|
|
RUNNING, PENDING, DONE, STARTED;
|
|
}
|
|
|
|
void testEq(String name, Status status) {
|
|
if(name =<caret>= "foo" || name == "bar" || "baz" == name || status == Status.DONE || status == Status.PENDING) {
|
|
System.out.println("foobarbaz");
|
|
}
|
|
}
|
|
}
|