mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 07:32:21 +07:00
1. IDEA-236142 warn about inconsistent Contract/NotNull annotations 2. Localization of messages 3. Better messages GitOrigin-RevId: 71add12d928cbc7234536c3746e9a97ec8c4c53f
10 lines
299 B
Java
10 lines
299 B
Java
import org.jetbrains.annotations.Contract;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
class Foo {
|
|
@Contract("<warning descr="Parameter 'foo' is inferred to be not-null, so 'null' is not applicable">null</warning> -> true")
|
|
public boolean test(Boolean foo) {
|
|
return foo.booleanValue();
|
|
}
|
|
}
|