JVM: no nullability annotations on private and synthetic fields

This commit is contained in:
Dmitry Petrov
2020-06-25 13:06:51 +03:00
parent cbd8b58d5c
commit 3f266aafb4
35 changed files with 67 additions and 72 deletions
@@ -1,11 +1,7 @@
public final class Class {
@org.jetbrains.annotations.Nullable
private final java.lang.String nullableVal;
@org.jetbrains.annotations.Nullable
private java.lang.String nullableVar;
@org.jetbrains.annotations.NotNull
private final java.lang.String notNullVal;
@org.jetbrains.annotations.NotNull
private java.lang.String notNullVar;
private final java.lang.String privateNN;
private final java.lang.String privateN;
@@ -69,4 +65,4 @@ public final class Class {
public final void setNullableVarWithGetSet(@org.jetbrains.annotations.Nullable java.lang.String v) { /* compiled code */ }
public Class() { /* compiled code */ }
}
}
@@ -1,5 +1,4 @@
public final class ClassObjectField {
@org.jetbrains.annotations.Nullable
private static final java.lang.String x;
private static final java.lang.String y;
@org.jetbrains.annotations.NotNull
@@ -1,7 +1,5 @@
public final class ClassWithConstructorAndProperties {
@org.jetbrains.annotations.Nullable
private final java.lang.String nullable;
@org.jetbrains.annotations.NotNull
private final java.lang.String notNull;
@org.jetbrains.annotations.Nullable
@@ -11,4 +9,4 @@ public final class ClassWithConstructorAndProperties {
public final java.lang.String getNotNull() { /* compiled code */ }
public ClassWithConstructorAndProperties(@org.jetbrains.annotations.Nullable java.lang.String nullable, @org.jetbrains.annotations.NotNull java.lang.String notNull) { /* compiled code */ }
}
}
@@ -1,11 +1,7 @@
public final class FileFacadeKt {
@org.jetbrains.annotations.Nullable
private static final java.lang.String nullableVal;
@org.jetbrains.annotations.Nullable
private static java.lang.String nullableVar;
@org.jetbrains.annotations.NotNull
private static final java.lang.String notNullVal;
@org.jetbrains.annotations.NotNull
private static java.lang.String notNullVar;
private static final java.lang.String privateNn;
private static final java.lang.String privateN;