Skip to content

Commit 317cbf9

Browse files
sandwwraithqwwdfsad
authored andcommitted
Do not specify runtime retention explicitly, because of
https://youtrack.jetbrains.com/issue/KT-41082
1 parent 5d6e0aa commit 317cbf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/commonMain/src/kotlinx/serialization/Annotations.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import kotlin.reflect.*
6969
* @see Serializer
7070
*/
7171
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS, AnnotationTarget.TYPE)
72-
@Retention(AnnotationRetention.RUNTIME)
72+
//@Retention(AnnotationRetention.RUNTIME) // Runtime is the default retention, also see KT-41082
7373
public annotation class Serializable(
7474
val with: KClass<out KSerializer<*>> = KSerializer::class // Default value indicates that auto-generated serializer is used
7575
)
@@ -209,7 +209,7 @@ public annotation class UseSerializers(vararg val serializerClasses: KClass<out
209209
* with special compiler plugin support which would be added later.
210210
*/
211211
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.TYPE, AnnotationTarget.CLASS)
212-
@Retention(AnnotationRetention.RUNTIME)
212+
//@Retention(AnnotationRetention.RUNTIME) // Runtime is the default retention, also see KT-41082
213213
public annotation class Polymorphic
214214

215215
/**

0 commit comments

Comments
 (0)