* Minor formatting update
* Use a regexp to discard xml header in tests
This commit is contained in:
Mahmoud Ben Hassine
2020-09-09 16:25:02 +02:00
parent d65203e2d3
commit 65d31bff1d
4 changed files with 12 additions and 29 deletions

View File

@@ -73,6 +73,7 @@ import org.springframework.util.StringUtils;
* @author Robert Kasanicky
* @author Michael Minella
* @author Parikshit Dutta
* @author Mahmoud Ben Hassine
*/
public class StaxEventItemWriter<T> extends AbstractItemStreamItemWriter<T> implements
ResourceAwareItemWriterItemStream<T>, InitializingBean {
@@ -635,7 +636,7 @@ ResourceAwareItemWriterItemStream<T>, InitializingBean {
XMLEventFactory factory = createXmlEventFactory();
// write start document
if (getStandalone()==null) {
if (getStandalone() == null) {
writer.add(factory.createStartDocument(getEncoding(), getVersion()));
}
else {

View File

@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
*
* @author Michael Minella
* @author Parikshit Dutta
* @author Mahmoud Ben Hassine
* @since 4.0
* @see StaxEventItemWriter
*/
@@ -200,7 +201,7 @@ public class StaxEventItemWriterBuilder<T> {
}
/**
* Standalone document declaration for the output document. Defaults to null.
* Standalone document declaration for the output document. Defaults to {@code null}.
*
* @param standalone Boolean standalone document declaration
* @return the current instance of the builder