From b65658910cbb3814474a643ff3a5ede4d6b48df1 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 27 Aug 2024 02:17:22 +0200 Subject: [PATCH] Added same annotations to platform specific JsonIgnore as expected annotation has --- .../net/codinux/banking/client/model/config/JsonIgnore.js.kt | 2 ++ .../codinux/banking/client/model/config/JsonIgnore.native.kt | 2 ++ .../codinux/banking/client/model/config/JsonIgnore.wasmJs.kt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/BankingClientModel/src/jsMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.js.kt b/BankingClientModel/src/jsMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.js.kt index fa075a72..39680fb9 100644 --- a/BankingClientModel/src/jsMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.js.kt +++ b/BankingClientModel/src/jsMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.js.kt @@ -1,3 +1,5 @@ package net.codinux.banking.client.model.config +@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY_GETTER) +@Retention(AnnotationRetention.RUNTIME) actual annotation class JsonIgnore \ No newline at end of file diff --git a/BankingClientModel/src/nativeMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.native.kt b/BankingClientModel/src/nativeMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.native.kt index fa075a72..39680fb9 100644 --- a/BankingClientModel/src/nativeMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.native.kt +++ b/BankingClientModel/src/nativeMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.native.kt @@ -1,3 +1,5 @@ package net.codinux.banking.client.model.config +@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY_GETTER) +@Retention(AnnotationRetention.RUNTIME) actual annotation class JsonIgnore \ No newline at end of file diff --git a/BankingClientModel/src/wasmJsMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.wasmJs.kt b/BankingClientModel/src/wasmJsMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.wasmJs.kt index fa075a72..39680fb9 100644 --- a/BankingClientModel/src/wasmJsMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.wasmJs.kt +++ b/BankingClientModel/src/wasmJsMain/kotlin/net/codinux/banking/client/model/config/JsonIgnore.wasmJs.kt @@ -1,3 +1,5 @@ package net.codinux.banking.client.model.config +@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY_GETTER) +@Retention(AnnotationRetention.RUNTIME) actual annotation class JsonIgnore \ No newline at end of file