mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
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")
9 lines
226 B
Java
9 lines
226 B
Java
// "Extract Set from comparison chain" "true"
|
|
public interface Test {
|
|
default void testOr(String s) {
|
|
if("foo"<caret>.equals(s) || "bar".equals(s) || "baz".equals(s)) {
|
|
System.out.println("foobarbaz");
|
|
}
|
|
}
|
|
}
|