From 91a9ee252aa7d17ea7a8a7786586fad0d06e7f75 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Tue, 15 Aug 2023 11:03:25 -0400 Subject: [PATCH] Remove default compatibility from unstable types It was used to give one minor version to migrate to in the chance compiled libraries were using the otherwise-unstable API. --- interop/kotlinx-metadata/api/kotlinx-metadata.api | 4 ---- .../com/squareup/kotlinpoet/metadata/specs/JvmModifier.kt | 1 - kotlinpoet/api/kotlinpoet.api | 4 ---- .../main/java/com/squareup/kotlinpoet/ContextReceivable.kt | 1 - 4 files changed, 10 deletions(-) diff --git a/interop/kotlinx-metadata/api/kotlinx-metadata.api b/interop/kotlinx-metadata/api/kotlinx-metadata.api index e80729eb60..6ba448bab0 100644 --- a/interop/kotlinx-metadata/api/kotlinx-metadata.api +++ b/interop/kotlinx-metadata/api/kotlinx-metadata.api @@ -290,10 +290,6 @@ public abstract interface class com/squareup/kotlinpoet/metadata/specs/JvmModifi public fun annotationSpec ()Lcom/squareup/kotlinpoet/AnnotationSpec; } -public final class com/squareup/kotlinpoet/metadata/specs/JvmModifier$DefaultImpls { - public static fun annotationSpec (Lcom/squareup/kotlinpoet/metadata/specs/JvmModifier;)Lcom/squareup/kotlinpoet/AnnotationSpec; -} - public final class com/squareup/kotlinpoet/metadata/specs/KmTypesKt { public static final fun isExtensionType (Lkotlinx/metadata/KmType;)Z } diff --git a/interop/kotlinx-metadata/src/main/kotlin/com/squareup/kotlinpoet/metadata/specs/JvmModifier.kt b/interop/kotlinx-metadata/src/main/kotlin/com/squareup/kotlinpoet/metadata/specs/JvmModifier.kt index 079a0e9ab9..f09e6add73 100644 --- a/interop/kotlinx-metadata/src/main/kotlin/com/squareup/kotlinpoet/metadata/specs/JvmModifier.kt +++ b/interop/kotlinx-metadata/src/main/kotlin/com/squareup/kotlinpoet/metadata/specs/JvmModifier.kt @@ -26,7 +26,6 @@ import com.squareup.kotlinpoet.metadata.KotlinPoetMetadataPreview * This API is considered read-only and should not be implemented outside of KotlinPoet. */ @KotlinPoetMetadataPreview -@JvmDefaultWithCompatibility public interface JvmModifier { public fun annotationSpec(): AnnotationSpec? { return null diff --git a/kotlinpoet/api/kotlinpoet.api b/kotlinpoet/api/kotlinpoet.api index d6d7d2a052..b8c4c03b1f 100644 --- a/kotlinpoet/api/kotlinpoet.api +++ b/kotlinpoet/api/kotlinpoet.api @@ -155,10 +155,6 @@ public abstract interface class com/squareup/kotlinpoet/ContextReceivable { } public abstract interface class com/squareup/kotlinpoet/ContextReceivable$Builder { - public abstract fun getContextReceiverTypes ()Ljava/util/List; -} - -public final class com/squareup/kotlinpoet/ContextReceivable$Builder$DefaultImpls { } public abstract interface annotation class com/squareup/kotlinpoet/DelicateKotlinPoetApi : java/lang/annotation/Annotation { diff --git a/kotlinpoet/src/main/java/com/squareup/kotlinpoet/ContextReceivable.kt b/kotlinpoet/src/main/java/com/squareup/kotlinpoet/ContextReceivable.kt index 127c360527..929096bc53 100644 --- a/kotlinpoet/src/main/java/com/squareup/kotlinpoet/ContextReceivable.kt +++ b/kotlinpoet/src/main/java/com/squareup/kotlinpoet/ContextReceivable.kt @@ -23,7 +23,6 @@ public interface ContextReceivable { public val contextReceiverTypes: List /** The builder analogue to [ContextReceivable] types. */ - @JvmDefaultWithCompatibility public interface Builder> { /** Mutable map of the current originating elements this builder contains. */