Skip to content

Commit b20c8ed

Browse files
committed
...
1 parent 3b31dcd commit b20c8ed

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/main/java/tools/jackson/dataformat/xml/XmlWriteFeature.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public enum XmlWriteFeature implements FormatFeature
3737
* it will not.
3838
*<p>
3939
* Feature is disabled by default for backwards compatibility.
40-
*
41-
* @since 2.10
4240
*/
4341
WRITE_NULLS_AS_XSI_NIL(false),
4442

@@ -53,12 +51,10 @@ public enum XmlWriteFeature implements FormatFeature
5351
* root element name is determined using normal logic (either explicitly
5452
* configured, or {@code ObjectNode} otherwise).
5553
*<p>
56-
* Default setting is {@code disabled} in Jackson 2.x, for backwards compatibility:
57-
* likely to be changed in 3.0 to {@code enabled}.
58-
*
59-
* @since 2.13
54+
* Default setting is {@code true} (enabled) in Jackson 3.0:
55+
* it was {@code false} in Jackson 2.x.
6056
*/
61-
UNWRAP_ROOT_OBJECT_NODE(false),
57+
UNWRAP_ROOT_OBJECT_NODE(true),
6258

6359
/**
6460
* Feature that enables automatic conversion of logical property
@@ -68,8 +64,6 @@ public enum XmlWriteFeature implements FormatFeature
6864
* and output is indicated to be done as XML Attribute.
6965
* This is mostly desirable for Polymorphic handling where it is difficult
7066
* to specify XML Namespace for type identifier
71-
*
72-
* @since 2.17
7367
*/
7468
AUTO_DETECT_XSI_TYPE(false),
7569

0 commit comments

Comments
 (0)