From 554140b6555ca13c74005d8cccf10e57f5c4bed3 Mon Sep 17 00:00:00 2001 From: Leonid Startsev Date: Wed, 2 Aug 2023 15:48:04 +0200 Subject: [PATCH] =?UTF-8?q?Follow-up=20for=20#2379=20=E2=80=94=20actually?= =?UTF-8?q?=20remove=20org.intellij.lang.annotations=20from=20JS=20and=20N?= =?UTF-8?q?ative?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../json/internal/IntelliJAnnotation.kt | 35 ------------------- .../json/internal/IntelliJAnnotation.kt | 35 ------------------- 2 files changed, 70 deletions(-) delete mode 100644 formats/json/jsMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt delete mode 100644 formats/json/nativeMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt diff --git a/formats/json/jsMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt b/formats/json/jsMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt deleted file mode 100644 index ab81e5be8..000000000 --- a/formats/json/jsMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2017-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. - */ - -@file:Suppress("PackageDirectoryMismatch") - -package org.intellij.lang.annotations - -import kotlinx.serialization.InternalSerializationApi - -/** - * JS implementation of JVM-only `org.intellij.lang.annotations.Language` class, adds syntax support by IDE. - * - * This class is missing from the Kotlin/JS targets, so it needs to be distributed along with the serialization runtime. - * - * Copy-paste from [https://github.com/JetBrains/java-annotations](https://github.com/JetBrains/java-annotations). - * - * @see [kotlinx.serialization.json.internal.FormatLanguage] - */ -@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 annotation class Language( - val value: String, - val prefix: String = "", - val suffix: String = "", -) diff --git a/formats/json/nativeMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt b/formats/json/nativeMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt deleted file mode 100644 index 8bf11d370..000000000 --- a/formats/json/nativeMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2017-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. - */ - -@file:Suppress("PackageDirectoryMismatch") - -package org.intellij.lang.annotations - -import kotlinx.serialization.InternalSerializationApi - -/** - * Native implementation of JVM-only `org.intellij.lang.annotations.Language` class, adds syntax support by IDE. - * - * This class is missing from the Kotlin/Native targets, so it needs to be distributed along with the serialization runtime. - * - * Copy-paste from [https://github.com/JetBrains/java-annotations](https://github.com/JetBrains/java-annotations). - * - * @see [kotlinx.serialization.json.internal.FormatLanguage] - */ -@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 annotation class Language( - val value: String, - val prefix: String = "", - val suffix: String = "", -) \ No newline at end of file