diff --git a/src/main/kotlin/table/FunctionTable.kt b/src/main/kotlin/table/FunctionTable.kt index 4390387..012c6a7 100644 --- a/src/main/kotlin/table/FunctionTable.kt +++ b/src/main/kotlin/table/FunctionTable.kt @@ -14,8 +14,8 @@ object FunctionTable { .enableAnnotationInfo() .whitelistPackages("function.builtin") - private val allBuiltIns = with(classGraph.scan()) { - getClassesWithAnnotation(FunctionNames::class.qualifiedName) + private val allBuiltIns = classGraph.scan().use { scan -> + scan.getClassesWithAnnotation(FunctionNames::class.qualifiedName) .map { it.loadClass() } .filterIsInstance>() .toSet()