mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 00:35:33 +07:00
To make error messages consistent #IDEA-374747 Fixed (cherry picked from commit 328c5b355fcf56a7d1c165aab32220d37bdfcbc1) IJ-MR-170004 GitOrigin-RevId: f00fb74ddbff84b18839c60648d664774d566966
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 non-null, so 'null' is not applicable">null</warning> -> true")
|
|
public boolean test(Boolean foo) {
|
|
return foo.booleanValue();
|
|
}
|
|
}
|