mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
Fix ConstantValue-related testData for lightClasses tests
TODO support custom language version settings for lightClasses tests
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
public final class Class {
|
||||
@org.jetbrains.annotations.Nullable
|
||||
private final java.lang.String nullableVal = "";
|
||||
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 = "";
|
||||
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 = "";
|
||||
private final java.lang.String privateNN;
|
||||
private final java.lang.String privateN;
|
||||
|
||||
@org.jetbrains.annotations.NotNull
|
||||
public final java.lang.String notNull(@org.jetbrains.annotations.NotNull java.lang.String a) { /* compiled code */ }
|
||||
|
||||
@@ -13,10 +13,10 @@ class Class {
|
||||
@Nullable fun nullableWithN(): String? = ""
|
||||
@NotNull fun nullableWithNN(): String? = ""
|
||||
|
||||
val nullableVal: String? = ""
|
||||
var nullableVar: String? = ""
|
||||
val notNullVal: String = ""
|
||||
var notNullVar: String = ""
|
||||
val nullableVal: String? = { "" }()
|
||||
var nullableVar: String? = { "" }()
|
||||
val notNullVal: String = { "" }()
|
||||
var notNullVar: String = { "" }()
|
||||
|
||||
val notNullValWithGet: String
|
||||
@[Nullable] get() = ""
|
||||
@@ -32,6 +32,6 @@ class Class {
|
||||
@[NotNull] get() = ""
|
||||
@[NotNull] set(v) {}
|
||||
|
||||
private val privateNN: String = ""
|
||||
private val privateN: String? = ""
|
||||
private val privateNN: String = { "" }()
|
||||
private val privateN: String? = { "" }()
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
public final class ClassObjectField {
|
||||
@org.jetbrains.annotations.Nullable
|
||||
private static final java.lang.String x = "";
|
||||
private static final java.lang.String y = "";
|
||||
private static final java.lang.String x;
|
||||
private static final java.lang.String y;
|
||||
public static final ClassObjectField.Companion Companion;
|
||||
|
||||
public ClassObjectField() { /* compiled code */ }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
class ClassObjectField {
|
||||
companion object {
|
||||
val x: String? = ""
|
||||
private val y: String? = ""
|
||||
val x: String? = { "" }()
|
||||
private val y: String? = { "" }()
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
public final class FileFacadeKt {
|
||||
@org.jetbrains.annotations.Nullable
|
||||
private static final java.lang.String nullableVal = "";
|
||||
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 = "";
|
||||
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 = "";
|
||||
private static final java.lang.String privateNn;
|
||||
private static final java.lang.String privateN;
|
||||
|
||||
@org.jetbrains.annotations.NotNull
|
||||
public static final java.lang.String notNull(@org.jetbrains.annotations.NotNull java.lang.String a) { /* compiled code */ }
|
||||
|
||||
@@ -12,10 +12,10 @@ fun nullable(a: String?): String? = ""
|
||||
@Nullable fun nullableWithN(): String? = ""
|
||||
@NotNull fun nullableWithNN(): String? = ""
|
||||
|
||||
val nullableVal: String? = ""
|
||||
var nullableVar: String? = ""
|
||||
val notNullVal: String = ""
|
||||
var notNullVar: String = ""
|
||||
val nullableVal: String? = { "" }()
|
||||
var nullableVar: String? = { "" }()
|
||||
val notNullVal: String = { "" }()
|
||||
var notNullVar: String = { "" }()
|
||||
|
||||
val notNullValWithGet: String
|
||||
@[Nullable] get() = ""
|
||||
@@ -31,6 +31,6 @@ var nullableVarWithGetSet: String?
|
||||
@NotNull get() = ""
|
||||
@NotNull set(v) {}
|
||||
|
||||
private val privateNn: String = ""
|
||||
private val privateN: String? = ""
|
||||
private val privateNn: String = { "" }()
|
||||
private val privateN: String? = { "" }()
|
||||
private fun privateFun(a: String, b: String?): String? = null
|
||||
@@ -1,5 +1,5 @@
|
||||
public final class C implements Tr {
|
||||
private final int v = 1;
|
||||
private final int v;
|
||||
|
||||
@org.jetbrains.annotations.NotNull
|
||||
public java.lang.Integer foo() { /* compiled code */ }
|
||||
|
||||
@@ -7,5 +7,5 @@ interface Tr {
|
||||
|
||||
class C: Tr {
|
||||
override fun foo() = 1
|
||||
override val v = 1
|
||||
override val v = { 1 }()
|
||||
}
|
||||
Reference in New Issue
Block a user