@@ -25,15 +25,14 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
25
25
NullIsSameAsDefault (enabledByDefault = false ),
26
26
27
27
/* *
28
- * By default, there's no special handling of singletons (pre-2.10 behavior).
29
- * Each time a Singleton object is deserialized a new instance is created.
30
- *
31
- * When this feature is enabled, it will deserialize then canonicalize (was the default in 2.10).
28
+ * When this feature is enabled, it will deserialize then canonicalize.
32
29
* Deserializing a singleton overwrites the value of the single instance.
33
30
*
31
+ * The 2.x default was disabled, and a new instance was created each time a singleton object was deserialized.
32
+ *
34
33
* See [jackson-module-kotlin#225]: keep Kotlin singletons as singletons.
35
34
*/
36
- SingletonSupport (enabledByDefault = false ),
35
+ SingletonSupport (enabledByDefault = true ),
37
36
38
37
/* *
39
38
* This feature represents whether to check deserialized collections.
@@ -88,8 +87,10 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
88
87
* This is a temporary option for a phased backend migration,
89
88
* which will eventually be merged into [StrictNullChecks].
90
89
* Also, specifying both this and [StrictNullChecks] is not permitted.
90
+ *
91
+ * Since 3.0, this option is enabled by default.
91
92
*/
92
- NewStrictNullChecks (enabledByDefault = false );
93
+ NewStrictNullChecks (enabledByDefault = true );
93
94
94
95
internal val bitSet: BitSet = (1 shl ordinal).toBitSet()
95
96
0 commit comments