From e1d300e8bc5a1ce6561121ff7346836c7d0122bd Mon Sep 17 00:00:00 2001 From: Erik Meuwese Date: Wed, 30 Nov 2016 17:01:01 +0100 Subject: [PATCH] STXM-17: Unnecessary line feeds --- .../java/org/jboss/staxmapper/FormattingXMLStreamWriter.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/org/jboss/staxmapper/FormattingXMLStreamWriter.java b/src/main/java/org/jboss/staxmapper/FormattingXMLStreamWriter.java index 916b5a4..816a5d5 100644 --- a/src/main/java/org/jboss/staxmapper/FormattingXMLStreamWriter.java +++ b/src/main/java/org/jboss/staxmapper/FormattingXMLStreamWriter.java @@ -346,7 +346,6 @@ public void run(int arg) throws XMLStreamException { public void writeComment(final String data) throws XMLStreamException { runAttrQueue(); nl(); - nl(); indent(); final StringBuilder b = new StringBuilder(data.length()); final Iterator i = Spliterator.over(data, '\n'); @@ -427,21 +426,18 @@ public void writeEntityRef(final String name) throws XMLStreamException { @Override public void writeStartDocument() throws XMLStreamException { delegate.writeStartDocument(); - nl(); state = START_DOCUMENT; } @Override public void writeStartDocument(final String version) throws XMLStreamException { delegate.writeStartDocument(version); - nl(); state = START_DOCUMENT; } @Override public void writeStartDocument(final String encoding, final String version) throws XMLStreamException { delegate.writeStartDocument(encoding, version); - nl(); state = START_DOCUMENT; }