[Standard Library] Take the javaClass deprecation back as its replacement is often inconvenient.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
// !DIAGNOSTICS: -DEPRECATION
|
|
||||||
package test
|
package test
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// !DIAGNOSTICS: -DEPRECATION
|
|
||||||
// KT-9078 (NPE in control flow analysis); EA-71535
|
// KT-9078 (NPE in control flow analysis); EA-71535
|
||||||
abstract class KFunctionKt9005WorkAround<out R: Any?>(private val _functionInstance: Function<R>) {
|
abstract class KFunctionKt9005WorkAround<out R: Any?>(private val _functionInstance: Function<R>) {
|
||||||
private val _reflectedFunction: kotlin.reflect.KFunction<R> = _functionInstance.<!UNRESOLVED_REFERENCE!>reflect<!>() ?: throw IllegalStateException("")
|
private val _reflectedFunction: kotlin.reflect.KFunction<R> = _functionInstance.<!UNRESOLVED_REFERENCE!>reflect<!>() ?: throw IllegalStateException("")
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ public val <T : Any> Class<T>.kotlin: KClass<T>
|
|||||||
/**
|
/**
|
||||||
* Returns the runtime Java class of this object.
|
* Returns the runtime Java class of this object.
|
||||||
*/
|
*/
|
||||||
@Deprecated("Use 'instance::class.java' instead to get java class of the instance.", ReplaceWith("this::class.java"))
|
|
||||||
public inline val <T: Any> T.javaClass : Class<T>
|
public inline val <T: Any> T.javaClass : Class<T>
|
||||||
@Suppress("UsePropertyAccessSyntax")
|
@Suppress("UsePropertyAccessSyntax")
|
||||||
get() = (this as java.lang.Object).getClass() as Class<T>
|
get() = (this as java.lang.Object).getClass() as Class<T>
|
||||||
|
|||||||
Reference in New Issue
Block a user