From 4045a945ba0a42021ace51c7ca77506b09aaad6c Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sun, 4 Feb 2024 16:01:57 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Kotlin=E3=81=AE=E9=9D=9E=E6=8E=A8?= =?UTF-8?q?=E5=A5=A8=E3=82=A2=E3=83=8E=E3=83=86=E3=83=BC=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=81=AE=E7=B6=99=E6=89=BF=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dev/usbharu/hideout/activitypub/domain/model/JsonLd.kt | 1 + .../core/infrastructure/kjobexposed/KJobJobQueueParentService.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/JsonLd.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/JsonLd.kt index 864332f4..f5e93fcb 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/JsonLd.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/JsonLd.kt @@ -62,6 +62,7 @@ class ContextDeserializer : JsonDeserializer() { class ContextSerializer : JsonSerializer>() { + @Deprecated("Deprecated in Java") override fun isEmpty(value: List?): Boolean = value.isNullOrEmpty() override fun isEmpty(provider: SerializerProvider?, value: List?): Boolean = value.isNullOrEmpty() diff --git a/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/kjobexposed/KJobJobQueueParentService.kt b/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/kjobexposed/KJobJobQueueParentService.kt index f61949e2..aeb040d1 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/kjobexposed/KJobJobQueueParentService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/kjobexposed/KJobJobQueueParentService.kt @@ -26,6 +26,7 @@ class KJobJobQueueParentService : JobQueueParentService { override fun init(jobDefines: List) = Unit + @Deprecated("use type safe → scheduleTypeSafe") override suspend fun schedule(job: J, block: ScheduleContext.(J) -> Unit) { logger.debug("schedule job={}", job.name) kjob.schedule(job, block)