Address some deprecation warnings

This commit is contained in:
arkon
2023-06-30 22:14:17 -04:00
parent 7d26ca046f
commit b79ef5dc79
2 changed files with 5 additions and 4 deletions

View File

@@ -168,7 +168,7 @@ internal object ExtensionLoader {
}
.flatMap {
try {
when (val obj = Class.forName(it, false, classLoader).newInstance()) {
when (val obj = Class.forName(it, false, classLoader).getDeclaredConstructor().newInstance()) {
is Source -> listOf(obj)
is SourceFactory -> obj.createSources()
else -> throw Exception("Unknown source class type! ${obj.javaClass}")