Files
openide/java/java-tests/testData/inspection/nullableProblems/IncorrectPlacementAmbiguous.java
Tagir Valeev e3ce663932 [java-inspections] Message update (extends/implements list -> clause)
GitOrigin-RevId: 980a0f99b085f621a4928aea4e06362a237954f5
2021-03-19 07:48:21 +00:00

16 lines
805 B
Java

import typeUse.*;
public class IncorrectPlacementAmbiguous 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> IncorrectPlacementAmbiguous() {}
void test(<warning descr="Receiver parameter is inherently not-null">@Nullable</warning> IncorrectPlacementAmbiguous this) {
@Nullable IncorrectPlacementAmbiguous.Inner a1;
IncorrectPlacementAmbiguous.@Nullable Inner a2;
}
<warning descr="Primitive type members cannot be annotated">@NotNull</warning> int[] data;
class Inner {}
}