mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-18 09:59:43 +07:00
93e35b7334
1. Fixed modifiers for interfaces
2. Replacement wrapped with Collections.unmodifiableSet
3. Supported Java 1.4 and lower
4. Supported Guava ImmutableSet
5. Supported comparisons like s.equals("xyz"), Objects.equals(s, "xyz")
11 lines
305 B
Java
11 lines
305 B
Java
// "Extract Set from comparison chain" "true"
|
|
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");
|
|
}
|
|
}
|
|
}
|