mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 20:54:49 +07:00
GitOrigin-RevId: d490d2696d070827fbe6a3b958a05acd31afcdc7
20 lines
987 B
Java
20 lines
987 B
Java
import typeUse.*;
|
|
|
|
public class IncorrectPlacement extends <warning descr="Nullability annotation is not applicable to extends/implements clause">@Nullable</warning> Object
|
|
implements <warning descr="Nullability annotation is not applicable to extends/implements clause">@Nullable</warning> Cloneable {
|
|
|
|
<warning descr="Nullability annotation is not applicable to constructors">@Nullable</warning> IncorrectPlacement() {}
|
|
|
|
void test(<warning descr="Receiver parameter is inherently not-null">@Nullable</warning> IncorrectPlacement this) {
|
|
<warning descr="Outer type is inherently not-null">@Nullable</warning> IncorrectPlacement.Inner a1;
|
|
IncorrectPlacement.@Nullable Inner a2;
|
|
}
|
|
|
|
void fqn() {
|
|
<warning descr="Annotation on fully-qualified name must be placed before the last component">@Nullable</warning> java.lang.String[] strs;
|
|
}
|
|
|
|
<warning descr="Primitive type members cannot be annotated">@NotNull</warning> int[] data;
|
|
|
|
class Inner {}
|
|
} |