You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only annotations that affect code generation/add declarations on class-level were selected
Other annotations that affect mainly properties (SerialName,Required,Transient) are left for further consideration.
File-level annotations like `@UseSerializers` likely shouldn't be documented.
See #2056
//@Retention(AnnotationRetention.RUNTIME) // Runtime is the default retention, also see KT-41082
72
73
publicannotationclassSerializable(
@@ -97,6 +98,7 @@ public annotation class Serializable(
97
98
* @see UseSerializers
98
99
* @see Serializer
99
100
*/
101
+
@MustBeDocumented
100
102
@Target(AnnotationTarget.ANNOTATION_CLASS)
101
103
//@Retention(AnnotationRetention.RUNTIME) // Runtime is the default retention, also see KT-41082
102
104
@ExperimentalSerializationApi
@@ -111,6 +113,7 @@ public annotation class MetaSerializable
111
113
* Changes may include additional constraints on classes and objects marked with this annotation,
112
114
* behavioural changes and even serialized shape of the class.
113
115
*/
116
+
@MustBeDocumented
114
117
@Target(AnnotationTarget.CLASS)
115
118
@Retention(AnnotationRetention.BINARY)
116
119
@ExperimentalSerializationApi
@@ -217,6 +220,7 @@ public annotation class EncodeDefault(val mode: Mode = Mode.ALWAYS) {
217
220
* Keep in mind that Kotlin compiler prioritizes [function parameter target][AnnotationTarget.VALUE_PARAMETER] over [property target][AnnotationTarget.PROPERTY],
218
221
* so serial info annotations used on constructor-parameters-as-properties without explicit declaration-site or use-site target are not preserved.
219
222
*/
223
+
@MustBeDocumented
220
224
@Target(AnnotationTarget.ANNOTATION_CLASS)
221
225
@Retention(AnnotationRetention.BINARY)
222
226
@ExperimentalSerializationApi
@@ -254,6 +258,7 @@ public annotation class SerialInfo
254
258
* fun foo(): Int = Derived.serializer().descriptor.annotations.filterIsInstance<A>().single().value
0 commit comments