Skip to content

Commit 9ffeda1

Browse files
committed
...
1 parent f6877c0 commit 9ffeda1

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

src/main/java/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.java

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -218,23 +218,6 @@ public void initGenerator() throws IOException
218218
/**********************************************************
219219
*/
220220

221-
/**
222-
* Standard JSON indenter does not work well with XML, use
223-
* default XML indenter instead.
224-
*<p>
225-
* !!! TODO: same as implementation in core 2.6; override may be
226-
* removed from 2.8
227-
*/
228-
@Override
229-
public final JsonGenerator useDefaultPrettyPrinter()
230-
{
231-
// related to [dataformat-xml#136], need to verify:
232-
if (_cfgPrettyPrinter != null) {
233-
return this;
234-
}
235-
return setPrettyPrinter(_constructDefaultPrettyPrinter());
236-
}
237-
238221
@Override
239222
protected PrettyPrinter _constructDefaultPrettyPrinter() {
240223
return new DefaultXmlPrettyPrinter();
@@ -310,6 +293,9 @@ public ToXmlGenerator configure(Feature f, boolean state) {
310293
return this;
311294
}
312295

296+
@Override
297+
public boolean canWriteFormattedNumbers() { return true; }
298+
313299
/*
314300
/**********************************************************
315301
/* Extended API, access to some internal components

0 commit comments

Comments
 (0)