diff --git a/.github/workflows/v3.yml b/.github/workflows/v3.yml index 9480914d..5d0955a2 100644 --- a/.github/workflows/v3.yml +++ b/.github/workflows/v3.yml @@ -104,7 +104,7 @@ jobs: id: build-processer run: | chmod +x ./gradlew - ./gradlew :apps:processer:bootJar --info + ./gradlew :apps:processer:bootJar --info --stacktrace echo "Build completed" @@ -161,7 +161,7 @@ jobs: id: build-converter run: | chmod +x ./gradlew - ./gradlew :apps:converter:bootJar --info + ./gradlew :apps:converter:bootJar --info --debug echo "Build completed" diff --git a/shared/eventi/src/main/kotlin/no/iktdev/eventi/implementations/EventCoordinator.kt b/shared/eventi/src/main/kotlin/no/iktdev/eventi/implementations/EventCoordinator.kt index 76c23d3c..77340e31 100644 --- a/shared/eventi/src/main/kotlin/no/iktdev/eventi/implementations/EventCoordinator.kt +++ b/shared/eventi/src/main/kotlin/no/iktdev/eventi/implementations/EventCoordinator.kt @@ -74,6 +74,7 @@ abstract class EventCoordinator> { } private var cachedListeners: List = emptyList() + @SuppressWarnings("unchecked cast") fun getListeners(): List> { val serviceBeans: Map = applicationContext.getBeansWithAnnotation(Service::class.java) @@ -81,7 +82,7 @@ abstract class EventCoordinator> { .filter { bean: Any? -> bean is EventListenerImpl<*, *> } .map { it -> it as EventListenerImpl<*, *> } .toList() - val eventListeners = beans as List> + val eventListeners: List> = beans as List> val listenerNames = eventListeners.map { it::class.java.name } if (listenerNames != cachedListeners) { listenerNames.filter { it !in cachedListeners }.forEach {