From 5bfcfe13aad987a8abe84a6b620e28cf7a3c2d24 Mon Sep 17 00:00:00 2001 From: Bruno Coelho <4brunu@gmail.com> Date: Wed, 17 Sep 2025 22:21:04 +0100 Subject: [PATCH] [kotlin][client] remove old deprecated apis --- .../jvm-common/infrastructure/Serializer.kt.mustache | 10 ---------- .../openapitools/client/infrastructure/Serializer.kt | 10 ---------- .../openapitools/client/infrastructure/Serializer.kt | 10 ---------- .../openapitools/client/infrastructure/Serializer.kt | 10 ---------- .../openapitools/client/infrastructure/Serializer.kt | 10 ---------- 5 files changed, 50 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/jvm-common/infrastructure/Serializer.kt.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/jvm-common/infrastructure/Serializer.kt.mustache index f27aa725a486..74525f44f78e 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/jvm-common/infrastructure/Serializer.kt.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/jvm-common/infrastructure/Serializer.kt.mustache @@ -131,11 +131,6 @@ import java.util.concurrent.atomic.AtomicLong .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}) {{/jackson}} {{#kotlinx_serialization}} - @Deprecated("Use Serializer.kotlinxSerializationAdapters instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationAdapters"), level = DeprecationLevel.ERROR) - @JvmStatic - val kotlinSerializationAdapters: SerializersModule - get() { return kotlinxSerializationAdapters } - private var isAdaptersInitialized = false @JvmStatic @@ -169,11 +164,6 @@ import java.util.concurrent.atomic.AtomicLong field = value } - @Deprecated("Use Serializer.kotlinxSerializationJson instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationJson"), level = DeprecationLevel.ERROR) - @JvmStatic - val jvmJson: Json - get() { return kotlinxSerializationJson } - private var isJsonInitialized = false @JvmStatic diff --git a/samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt index 626797181220..1bed97472b3a 100644 --- a/samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +++ b/samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt @@ -17,11 +17,6 @@ import java.util.concurrent.atomic.AtomicInteger import java.util.concurrent.atomic.AtomicLong object Serializer { - @Deprecated("Use Serializer.kotlinxSerializationAdapters instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationAdapters"), level = DeprecationLevel.ERROR) - @JvmStatic - val kotlinSerializationAdapters: SerializersModule - get() { return kotlinxSerializationAdapters } - private var isAdaptersInitialized = false @JvmStatic @@ -53,11 +48,6 @@ object Serializer { field = value } - @Deprecated("Use Serializer.kotlinxSerializationJson instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationJson"), level = DeprecationLevel.ERROR) - @JvmStatic - val jvmJson: Json - get() { return kotlinxSerializationJson } - private var isJsonInitialized = false @JvmStatic diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt index 626797181220..1bed97472b3a 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt @@ -17,11 +17,6 @@ import java.util.concurrent.atomic.AtomicInteger import java.util.concurrent.atomic.AtomicLong object Serializer { - @Deprecated("Use Serializer.kotlinxSerializationAdapters instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationAdapters"), level = DeprecationLevel.ERROR) - @JvmStatic - val kotlinSerializationAdapters: SerializersModule - get() { return kotlinxSerializationAdapters } - private var isAdaptersInitialized = false @JvmStatic @@ -53,11 +48,6 @@ object Serializer { field = value } - @Deprecated("Use Serializer.kotlinxSerializationJson instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationJson"), level = DeprecationLevel.ERROR) - @JvmStatic - val jvmJson: Json - get() { return kotlinxSerializationJson } - private var isJsonInitialized = false @JvmStatic diff --git a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt index 626797181220..1bed97472b3a 100644 --- a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +++ b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt @@ -17,11 +17,6 @@ import java.util.concurrent.atomic.AtomicInteger import java.util.concurrent.atomic.AtomicLong object Serializer { - @Deprecated("Use Serializer.kotlinxSerializationAdapters instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationAdapters"), level = DeprecationLevel.ERROR) - @JvmStatic - val kotlinSerializationAdapters: SerializersModule - get() { return kotlinxSerializationAdapters } - private var isAdaptersInitialized = false @JvmStatic @@ -53,11 +48,6 @@ object Serializer { field = value } - @Deprecated("Use Serializer.kotlinxSerializationJson instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationJson"), level = DeprecationLevel.ERROR) - @JvmStatic - val jvmJson: Json - get() { return kotlinxSerializationJson } - private var isJsonInitialized = false @JvmStatic diff --git a/samples/client/petstore/kotlin-uppercase-enum/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/samples/client/petstore/kotlin-uppercase-enum/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt index 626797181220..1bed97472b3a 100644 --- a/samples/client/petstore/kotlin-uppercase-enum/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +++ b/samples/client/petstore/kotlin-uppercase-enum/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt @@ -17,11 +17,6 @@ import java.util.concurrent.atomic.AtomicInteger import java.util.concurrent.atomic.AtomicLong object Serializer { - @Deprecated("Use Serializer.kotlinxSerializationAdapters instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationAdapters"), level = DeprecationLevel.ERROR) - @JvmStatic - val kotlinSerializationAdapters: SerializersModule - get() { return kotlinxSerializationAdapters } - private var isAdaptersInitialized = false @JvmStatic @@ -53,11 +48,6 @@ object Serializer { field = value } - @Deprecated("Use Serializer.kotlinxSerializationJson instead", replaceWith = ReplaceWith("Serializer.kotlinxSerializationJson"), level = DeprecationLevel.ERROR) - @JvmStatic - val jvmJson: Json - get() { return kotlinxSerializationJson } - private var isJsonInitialized = false @JvmStatic