Add quick fix for 'JAVA_CLASS_ON_COMPANION'
#KT-29264 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
d61158a176
commit
15a615d63b
@@ -0,0 +1,6 @@
|
||||
// "Replace with '::class.java'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
fun main() {
|
||||
val c: Class<Int.Companion> = Int.javaClass<caret>
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with '::class.java'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
fun main() {
|
||||
val c: Class<Int.Companion> = Int::class.java
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Replace with '::class.java'" "true"
|
||||
// WITH_RUNTIME
|
||||
fun main() {
|
||||
val c = Int.javaClass<caret>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Replace with '::class.java'" "true"
|
||||
// WITH_RUNTIME
|
||||
fun main() {
|
||||
val c = Int::class.java
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Replace with '::class.java'" "true"
|
||||
// WITH_RUNTIME
|
||||
fun main() {
|
||||
val name = Int.javaClass<caret>.name
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Replace with '::class.java'" "true"
|
||||
// WITH_RUNTIME
|
||||
fun main() {
|
||||
val name = Int::class.java.name
|
||||
}
|
||||
Reference in New Issue
Block a user