Skip to content

Commit 96bc6d3

Browse files
committed
Actual changes
1 parent 03ecd3e commit 96bc6d3

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ public enum XmlWriteFeature implements FormatFeature
3636
* If enabled, `xsi:nil` attribute will be added to the empty element; if disabled,
3737
* it will not.
3838
*<p>
39-
* Feature is disabled by default for backwards compatibility.
39+
* Default setting is {@code true} (enabled) in Jackson 3.x:
40+
* it was {@code false} (disabled)in Jackson 2.x.
4041
*/
41-
WRITE_NULLS_AS_XSI_NIL(false),
42+
WRITE_NULLS_AS_XSI_NIL(true),
4243

4344
/**
4445
* Feature that determines writing of root values of type {@code ObjectNode}
@@ -51,8 +52,8 @@ public enum XmlWriteFeature implements FormatFeature
5152
* root element name is determined using normal logic (either explicitly
5253
* configured, or {@code ObjectNode} otherwise).
5354
*<p>
54-
* Default setting is {@code true} (enabled) in Jackson 3.0:
55-
* it was {@code false} in Jackson 2.x.
55+
* Default setting is {@code true} (enabled) in Jackson 3.x:
56+
* it was {@code false} (disabled)in Jackson 2.x.
5657
*/
5758
UNWRAP_ROOT_OBJECT_NODE(true),
5859

@@ -64,8 +65,11 @@ public enum XmlWriteFeature implements FormatFeature
6465
* and output is indicated to be done as XML Attribute.
6566
* This is mostly desirable for Polymorphic handling where it is difficult
6667
* to specify XML Namespace for type identifier
68+
*<p>
69+
* Default setting is {@code true} (enabled) in Jackson 3.0:
70+
* it was {@code false} (disabled)in Jackson 2.x.
6771
*/
68-
AUTO_DETECT_XSI_TYPE(false),
72+
AUTO_DETECT_XSI_TYPE(true),
6973

7074
/**
7175
* Feature that determines how floating-point infinity values are
@@ -92,9 +96,10 @@ public enum XmlWriteFeature implements FormatFeature
9296
* so there is no corresponding
9397
* {@link tools.jackson.dataformat.xml.XmlReadFeature}.
9498
*<p>
95-
* Feature is disabled by default for backwards compatibility.
99+
* Default setting is {@code true} (enabled) in Jackson 3.0:
100+
* it was {@code false} (disabled)in Jackson 2.x.
96101
*/
97-
WRITE_XML_SCHEMA_CONFORMING_FLOATS(false),
102+
WRITE_XML_SCHEMA_CONFORMING_FLOATS(true),
98103
;
99104

100105
private final boolean _defaultState;

0 commit comments

Comments
 (0)