[Standard Library] Take the javaClass deprecation back as its replacement is often inconvenient.

This commit is contained in:
Ilya Gorbunov
2017-02-20 16:17:23 +03:00
parent d124912c91
commit 5867d27fb7
3 changed files with 0 additions and 3 deletions
@@ -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>