mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-19 17:29:34 +07:00
12 lines
254 B
Java
12 lines
254 B
Java
import org.jetbrains.annotations.Contract;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Foo {
|
|
@Nullable
|
|
@Contract ( "_ -> null")
|
|
String foo(String s) {
|
|
return <warning descr="Contract clause '_ -> null' is violated">"42"</warning>;
|
|
}
|
|
|
|
}
|