mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
11 lines
276 B
Java
11 lines
276 B
Java
import org.jetbrains.annotations.Contract;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Foo {
|
|
@Contract("_,null->fail")
|
|
boolean bar(int i, @Nullable Object foo) {
|
|
return <warning descr="Contract clause '_, null -> fail' is violated">foo == null</warning>;
|
|
}
|
|
|
|
}
|