mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
22 lines
412 B
Java
22 lines
412 B
Java
import org.jetbrains.annotations.*;
|
|
|
|
import java.util.Collection;
|
|
|
|
class NullableTest {
|
|
|
|
public void foo(@Nullable String a, Collection<D> test) {
|
|
boolean filterA = a == null;
|
|
for (D i : test) {
|
|
if ("c".equals(i.getE()) || filterA || bar(a)) {
|
|
System.out.println("ok");
|
|
}
|
|
}
|
|
}
|
|
|
|
private native boolean bar(@NotNull String c);
|
|
|
|
private interface D {
|
|
String getE();
|
|
}
|
|
|
|
} |