[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
|
||||
|
||||
class A {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// !DIAGNOSTICS: -DEPRECATION
|
||||
// KT-9078 (NPE in control flow analysis); EA-71535
|
||||
abstract class KFunctionKt9005WorkAround<out R: Any?>(private val _functionInstance: Function<R>) {
|
||||
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.
|
||||
*/
|
||||
@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>
|
||||
@Suppress("UsePropertyAccessSyntax")
|
||||
get() = (this as java.lang.Object).getClass() as Class<T>
|
||||
|
||||
Reference in New Issue
Block a user