mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-29 08:31:29 +00:00
Enum.values is now deprecated but Enum.values() is no more deprecated
This commit is contained in:
@@ -17,9 +17,9 @@ public interface CustomAnnotation {
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.CustomAnnotation.MyEnum!): kotlin.Int
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.CustomAnnotation.MyEnum>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.CustomAnnotation.MyEnum>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.CustomAnnotation.MyEnum
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.CustomAnnotation.MyEnum>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.CustomAnnotation.MyEnum>
|
||||
}
|
||||
|
||||
@test.CustomAnnotation.MyAnnotation(value = MyEnum.ONE) public open class MyTest {
|
||||
|
||||
@@ -14,9 +14,9 @@ public open class EnumArgumentWithCustomToString {
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.EnumArgumentWithCustomToString.E!): kotlin.Int
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.EnumArgumentWithCustomToString.E>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.EnumArgumentWithCustomToString.E>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.EnumArgumentWithCustomToString.E
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.EnumArgumentWithCustomToString.E>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.EnumArgumentWithCustomToString.E>
|
||||
}
|
||||
|
||||
public final annotation class EnumAnno : kotlin.Annotation {
|
||||
|
||||
@@ -16,7 +16,7 @@ public final enum class EnumConstructorParameter : kotlin.Enum<test.EnumConstruc
|
||||
}
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.EnumConstructorParameter>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.EnumConstructorParameter>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.EnumConstructorParameter
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.EnumConstructorParameter>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.EnumConstructorParameter>
|
||||
}
|
||||
|
||||
@@ -19,8 +19,8 @@ public open class NestedEnumArgument {
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.NestedEnumArgument.E!): kotlin.Int
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.NestedEnumArgument.E>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.NestedEnumArgument.E>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.NestedEnumArgument.E
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.NestedEnumArgument.E>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.NestedEnumArgument.E>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ public final enum class EnumMembers : kotlin.Enum<test.EnumMembers!> {
|
||||
public open fun first(): kotlin.Boolean
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.EnumMembers>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.EnumMembers>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.EnumMembers
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.EnumMembers>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.EnumMembers>
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ public open enum class EnumWithSpecializedEntry : kotlin.Enum<test.EnumWithSpeci
|
||||
}
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.EnumWithSpecializedEntry>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.EnumWithSpecializedEntry>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.EnumWithSpecializedEntry
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.EnumWithSpecializedEntry>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.EnumWithSpecializedEntry>
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public final enum class JavaEnum : kotlin.Enum<test.JavaEnum!> {
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.JavaEnum!): kotlin.Int
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.JavaEnum>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.JavaEnum>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.JavaEnum
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.JavaEnum>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.JavaEnum>
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public final enum class Enum : kotlin.Enum<test.Enum!> {
|
||||
}
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.Enum>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.Enum>
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.Enum
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.Enum>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.Enum>
|
||||
}
|
||||
|
||||
@@ -12,10 +12,10 @@ public final enum class StaticMembersInEnum : kotlin.Enum<test.StaticMembersInEn
|
||||
// Static members
|
||||
public final val CONSTANT: test.StaticMembersInEnum!
|
||||
public final var STATIC_FIELD: kotlin.Int
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.StaticMembersInEnum>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.StaticMembersInEnum>
|
||||
public open fun foo(): kotlin.Unit
|
||||
public open fun valueOf(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.StaticMembersInEnum
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.StaticMembersInEnum>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.StaticMembersInEnum>
|
||||
public open fun values(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -29,8 +29,8 @@ public/*package*/ final enum class StaticMembersInEnum : kotlin.Enum<test.Static
|
||||
public final var c: kotlin.Int
|
||||
public final override /*1*/ var d: kotlin.Int
|
||||
public const final override /*1*/ /*fake_override*/ val e: kotlin.Int
|
||||
public final /*synthesized*/ val values: kotlin.Array<test.StaticMembersInEnum>
|
||||
@kotlin.Deprecated(message = "Use 'values()' function instead", replaceWith = kotlin.ReplaceWith(expression = "this.values()", imports = {})) public final /*synthesized*/ val values: kotlin.Array<test.StaticMembersInEnum>
|
||||
public open fun foo(): kotlin.Unit
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.StaticMembersInEnum
|
||||
@kotlin.Deprecated(message = "Use 'values' property instead", replaceWith = kotlin.ReplaceWith(expression = "this.values", imports = {})) public final /*synthesized*/ fun values(): kotlin.Array<test.StaticMembersInEnum>
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.StaticMembersInEnum>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user