mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
18 lines
363 B
Java
18 lines
363 B
Java
// "Extract Set from comparison chain" "true-preview"
|
|
|
|
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");
|
|
}
|
|
}
|
|
}
|