Files
openide/java/java-tests/testData/inspection/nullableProblems/IncorrectPlacementAmbiguousJava6.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
1.1 KiB
Java

import typeUse.*;
public class IncorrectPlacementAmbiguousJava6 extends <error descr="Type annotations are not supported at language level '6'"><warning descr="Nullability annotation is not applicable to extends/implements clause">@Nullable</warning></error> Object
implements <error descr="Type annotations are not supported at language level '6'"><warning descr="Nullability annotation is not applicable to extends/implements clause">@Nullable</warning></error> Cloneable {
<warning descr="Nullability annotation is not applicable to constructors">@Nullable</warning> IncorrectPlacementAmbiguousJava6() {}
void test(<error descr="Receiver parameters are not supported at language level '6'"><warning descr="Receiver parameter is inherently not-null">@Nullable</warning> IncorrectPlacementAmbiguousJava6 this</error>) {
@Nullable IncorrectPlacementAmbiguousJava6.Inner a1;
IncorrectPlacementAmbiguousJava6.<error descr="Type annotations are not supported at language level '6'">@Nullable</error> Inner a2;
}
@NotNull int[] data;
class Inner {}
}