JVM: Generate object and companion object INSTANCE fields as @NotNull

This commit is contained in:
Dmitry Petrov
2020-06-17 15:30:18 +03:00
parent 558dfc6d9a
commit e9231b5624
41 changed files with 84 additions and 44 deletions
@@ -5,12 +5,14 @@ public final class A {
public B() { /* compiled code */ }
public static final class I {
@org.jetbrains.annotations.NotNull
public static final A.B.I INSTANCE;
private I() { /* compiled code */ }
}
public static final class II {
@org.jetbrains.annotations.NotNull
public static final A.B.II INSTANCE;
private II() { /* compiled code */ }
@@ -18,16 +20,19 @@ public final class A {
}
public static final class C {
@org.jetbrains.annotations.NotNull
public static final A.C INSTANCE;
private C() { /* compiled code */ }
public static final class D {
@org.jetbrains.annotations.NotNull
public static final A.C.D INSTANCE;
private D() { /* compiled code */ }
public static final class G {
@org.jetbrains.annotations.NotNull
public static final A.C.D.G INSTANCE;
private G() { /* compiled code */ }