Skip to content

Commit 15a89e4

Browse files
authored
Transient properties (should -> must) have default values (#2172)
This PR changes 'should' to 'must', which better describes the behaviour.
1 parent 0b01b53 commit 15a89e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public annotation class Required
162162

163163
/**
164164
* Marks this property invisible for the whole serialization process, including [serial descriptors][SerialDescriptor].
165-
* Transient properties should have default values.
165+
* Transient properties must have default values.
166166
*/
167167
@Target(AnnotationTarget.PROPERTY)
168168
// @Retention(AnnotationRetention.RUNTIME) still runtime, but KT-41082

0 commit comments

Comments
 (0)