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

View File

@@ -2,7 +2,6 @@ public final class Wrapper {
public Wrapper() { /* compiled code */ }
public static final class Equals {
@org.jetbrains.annotations.NotNull
private final p.G code;
public boolean equals(@org.jetbrains.annotations.Nullable java.lang.Object other) { /* compiled code */ }
@@ -25,7 +24,6 @@ public final class Wrapper {
}
public static final class HashCode {
@org.jetbrains.annotations.NotNull
private final p.G code;
public int hashCode() { /* compiled code */ }
@@ -48,7 +46,6 @@ public final class Wrapper {
}
public static final class ToString {
@org.jetbrains.annotations.NotNull
private final p.G code;
@org.jetbrains.annotations.NotNull

View File

@@ -1,7 +1,6 @@
public final class A {
@kotlin.jvm.Transient
@kotlin.jvm.Volatile
@org.jetbrains.annotations.NotNull
private transient volatile java.lang.String c;
@kotlin.jvm.Synchronized

View File

@@ -2,6 +2,7 @@ public final class SmartSet <T> extends kotlin.collections.AbstractSet<T> implem
private java.lang.Object data;
private int size;
private static final int ARRAY_THRESHOLD;
@org.jetbrains.annotations.NotNull
public static final SmartSet.Companion Companion;
public int getSize() { /* compiled code */ }

View File

@@ -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 */ }
}
}

View File

@@ -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

View File

@@ -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 */ }
}
}

View File

@@ -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;

View File

@@ -1,6 +1,5 @@
public final class A {
private static final int c;
@org.jetbrains.annotations.NotNull
private static java.lang.String v;
public static final int cc = 1;
@org.jetbrains.annotations.NotNull