summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Startsev <sandwwraith@users.noreply.github.com>2023-08-02 18:08:03 +0200
committerGitHub <noreply@github.com>2023-08-02 18:08:03 +0200
commit093321f21e2d28ffcce12fffa677b7c92fb54ea9 (patch)
tree981cfd582a49523e509ef445d38852e6fe159689
parentadf350b55dacc876a8aa3574d4ed77063d1084e0 (diff)
downloadkotlinx.serialization-093321f21e2d28ffcce12fffa677b7c92fb54ea9.tar.gz
Follow-up for #2379 — actually remove org.intellij.lang.annotations from JS and Native (#2390)
-rw-r--r--formats/json/jsMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt35
-rw-r--r--formats/json/nativeMain/src/kotlinx/serialization/json/internal/IntelliJAnnotation.kt35
2 files changed, 0 insertions, 70 deletions
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 ab81e5be..00000000
--- 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 8bf11d37..00000000
--- 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