From 1f0be50126d268d5be05885c1811170f6fc7afb6 Mon Sep 17 00:00:00 2001 From: bskjon Date: Sat, 13 Jul 2024 21:18:25 +0200 Subject: [PATCH] v3 6 --- .github/workflows/v3.yml | 4 ++-- .../no/iktdev/eventi/implementations/EventCoordinator.kt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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 {