Skip to content

Commit 397fa5a

Browse files
committed
Update XmlMapper.java
1 parent ab5a167 commit 397fa5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ public Builder configure(XmlWriteFeature feature, boolean state)
245245
*/
246246
//@Override
247247
public Builder configureForJackson2() {
248-
//TODO call super.configureForJackson2() when available - https://github.com/FasterXML/jackson-databind/pull/5004
249-
return disable(XmlWriteFeature.WRITE_NULLS_AS_XSI_NIL)
248+
return super.configureForJackson2()
249+
.disable(XmlWriteFeature.WRITE_NULLS_AS_XSI_NIL)
250250
.disable(XmlWriteFeature.UNWRAP_ROOT_OBJECT_NODE)
251251
.disable(XmlWriteFeature.AUTO_DETECT_XSI_TYPE)
252252
.disable(XmlWriteFeature.WRITE_XML_SCHEMA_CONFORMING_FLOATS);

0 commit comments

Comments
 (0)