mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-18 18:31:55 +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")
18 lines
355 B
Java
18 lines
355 B
Java
// "Extract Set from comparison chain" "true"
|
|
|
|
package com.google.common.collect;
|
|
|
|
class ImmutableSet<T> {
|
|
public static <T> ImmutableSet<T> of(T... elements) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public class Test {
|
|
void testOr(String s) {
|
|
if("foo"<caret>.equals(s) || "bar".equals(s) || "baz".equals(s)) {
|
|
System.out.println("foobarbaz");
|
|
}
|
|
}
|
|
}
|