Files
Bart van Helvertandintellij-monorepo-bot 94d5fdf882 [java] Replace not-null with non-null
To make error messages consistent #IDEA-374747 Fixed


(cherry picked from commit 328c5b355fcf56a7d1c165aab32220d37bdfcbc1)

IJ-MR-170004

GitOrigin-RevId: f00fb74ddbff84b18839c60648d664774d566966
2025-07-22 21:25:49 +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 non-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 {}
}