From 416e20a4af303620b7bff4caf7e34e7d719afa63 Mon Sep 17 00:00:00 2001 From: Margarita Bobova <32216159+woainikk@users.noreply.github.com> Date: Thu, 3 Aug 2023 08:34:45 +0200 Subject: [PATCH] Add annotations from expect entity to actual entity. Required after KT-58551 (#2388) --- .../serialization/json/internal/FormatLanguageJs.kt | 10 ++++++++++ .../serialization/json/internal/FormatLanguage.kt | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/formats/json/jsMain/src/kotlinx/serialization/json/internal/FormatLanguageJs.kt b/formats/json/jsMain/src/kotlinx/serialization/json/internal/FormatLanguageJs.kt index eb96ea2e2..176771fd4 100644 --- a/formats/json/jsMain/src/kotlinx/serialization/json/internal/FormatLanguageJs.kt +++ b/formats/json/jsMain/src/kotlinx/serialization/json/internal/FormatLanguageJs.kt @@ -7,6 +7,16 @@ package kotlinx.serialization.json.internal; import kotlinx.serialization.InternalSerializationApi @InternalSerializationApi +@Retention(AnnotationRetention.BINARY) +@Target( + AnnotationTarget.FUNCTION, + AnnotationTarget.PROPERTY_GETTER, + AnnotationTarget.PROPERTY_SETTER, + AnnotationTarget.FIELD, + AnnotationTarget.VALUE_PARAMETER, + AnnotationTarget.LOCAL_VARIABLE, + AnnotationTarget.ANNOTATION_CLASS +) public actual annotation class FormatLanguage( public actual val value: String, // default parameters are not used due to https://youtrack.jetbrains.com/issue/KT-25946/ diff --git a/formats/json/nativeMain/src/kotlinx/serialization/json/internal/FormatLanguage.kt b/formats/json/nativeMain/src/kotlinx/serialization/json/internal/FormatLanguage.kt index 1518d86cc..4f2fff0c3 100644 --- a/formats/json/nativeMain/src/kotlinx/serialization/json/internal/FormatLanguage.kt +++ b/formats/json/nativeMain/src/kotlinx/serialization/json/internal/FormatLanguage.kt @@ -7,6 +7,16 @@ package kotlinx.serialization.json.internal; import kotlinx.serialization.InternalSerializationApi @InternalSerializationApi +@Retention(AnnotationRetention.BINARY) +@Target( + AnnotationTarget.FUNCTION, + AnnotationTarget.PROPERTY_GETTER, + AnnotationTarget.PROPERTY_SETTER, + AnnotationTarget.FIELD, + AnnotationTarget.VALUE_PARAMETER, + AnnotationTarget.LOCAL_VARIABLE, + AnnotationTarget.ANNOTATION_CLASS +) public actual annotation class FormatLanguage( public actual val value: String, // default parameters are not used due to https://youtrack.jetbrains.com/issue/KT-25946/