@@ -25,15 +25,14 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
2525 NullIsSameAsDefault (enabledByDefault = false ),
2626
2727 /* *
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.
3229 * Deserializing a singleton overwrites the value of the single instance.
3330 *
31+ * The 2.x default was disabled, and a new instance was created each time a singleton object was deserialized.
32+ *
3433 * See [jackson-module-kotlin#225]: keep Kotlin singletons as singletons.
3534 */
36- SingletonSupport (enabledByDefault = false ),
35+ SingletonSupport (enabledByDefault = true ),
3736
3837 /* *
3938 * This feature represents whether to check deserialized collections.
@@ -88,8 +87,10 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
8887 * This is a temporary option for a phased backend migration,
8988 * which will eventually be merged into [StrictNullChecks].
9089 * Also, specifying both this and [StrictNullChecks] is not permitted.
90+ *
91+ * Since 3.0, this option is enabled by default.
9192 */
92- NewStrictNullChecks (enabledByDefault = false );
93+ NewStrictNullChecks (enabledByDefault = true );
9394
9495 internal val bitSet: BitSet = (1 shl ordinal).toBitSet()
9596
0 commit comments