We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52733b6 commit 692e92bCopy full SHA for 692e92b
plugin/main/src/kotlinx/benchmark/gradle/Utils.kt
@@ -69,6 +69,7 @@ fun <T> Any.closureOf(action: T.() -> Unit): Closure<Any?> =
69
fun <T> Any.tryGetClass(className: String): Class<T>? {
70
val classLoader = javaClass.classLoader
71
return try {
72
+ @Suppress("UNCHECKED_CAST")
73
Class.forName(className, false, classLoader) as Class<T>
74
} catch (e: ClassNotFoundException) {
75
null
0 commit comments