Skip to content

Commit 875aae0

Browse files
committed
fix: VariousClass loadOrNull function return Class<*> without Class<Any> in JavaClass
1 parent d5664e1 commit 875aae0

File tree

1 file changed

+1
-1
lines changed
  • kavaref-extension/src/main/kotlin/com/highcapable/kavaref/extension

1 file changed

+1
-1
lines changed

kavaref-extension/src/main/kotlin/com/highcapable/kavaref/extension/JavaClass.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class VariousClass(vararg names: String) {
9494
* @return [Class] or null if no class is found.
9595
*/
9696
@JvmOverloads
97-
fun loadOrNull(loader: ClassLoader? = null, initialize: Boolean = false): Class<*>? {
97+
fun loadOrNull(loader: ClassLoader? = null, initialize: Boolean = false): Class<Any>? {
9898
val currentLoader = loader
9999
?: ClassLoaderProvider.classLoader
100100
?: ClassLoader.getSystemClassLoader()

0 commit comments

Comments
 (0)