Skip to content

Commit 7b45ec5

Browse files
authored
Merge pull request #293 from ProjectMapK/k163377-patch-1
Update docs
2 parents e311de2 + 6741aeb commit 7b45ec5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/kotlin/io/github/projectmapk/jackson/module/kogera/KotlinFeature.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ public enum class KotlinFeature(internal val enabledByDefault: Boolean) {
3737
NullIsSameAsDefault(enabledByDefault = false),
3838

3939
/**
40-
* By default, there's no special handling of singletons (pre-2.10 behavior).
41-
* Each time a Singleton object is deserialized a new instance is created.
42-
*
4340
* When this feature is enabled, it will deserialize then canonicalize (was the default in 2.10).
4441
* Deserializing a singleton overwrites the value of the single instance.
4542
*
43+
* Prior to 2.18.3-beta18, the default was invalid and a new instance was created each time a singleton object was deserialized.
44+
*
4645
* See [jackson-module-kotlin#225]: keep Kotlin singletons as singletons.
4746
*/
4847
SingletonSupport(enabledByDefault = true),
@@ -55,6 +54,8 @@ public enum class KotlinFeature(internal val enabledByDefault: Boolean) {
5554
* Enabling it protects against this, but it impairs performance a bit.
5655
*
5756
* Also, if contentNulls are custom from findSetterInfo in AnnotationIntrospector, there may be a conflict.
57+
*
58+
* Since 2.18.3-beta19, this option is enabled by default.
5859
*/
5960
StrictNullChecks(enabledByDefault = true),
6061

0 commit comments

Comments
 (0)