Files
2022-07-29 17:55:00 +00:00

13 lines
330 B
Java

// "Extract Set from comparison chain" "true-preview"
public class Test {
public static final String BAR = "bar";
void testOr(int i, String property) {
int PROPERTIES;
if(i > 0 && ("foo"<caret>.equals(property) || BAR.equals(property) || "baz".equals(property))) {
System.out.println("foobarbaz");
}
}
}