Skip to content

Commit 692e92b

Browse files
author
Abduqodiri Qurbonzoda
committed
Suppress unchecked type cast
1 parent 52733b6 commit 692e92b

File tree

1 file changed

+1
-0
lines changed
  • plugin/main/src/kotlinx/benchmark/gradle

1 file changed

+1
-0
lines changed

plugin/main/src/kotlinx/benchmark/gradle/Utils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ fun <T> Any.closureOf(action: T.() -> Unit): Closure<Any?> =
6969
fun <T> Any.tryGetClass(className: String): Class<T>? {
7070
val classLoader = javaClass.classLoader
7171
return try {
72+
@Suppress("UNCHECKED_CAST")
7273
Class.forName(className, false, classLoader) as Class<T>
7374
} catch (e: ClassNotFoundException) {
7475
null

0 commit comments

Comments
 (0)