summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/WseHeader.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/WseHeader.java b/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/WseHeader.java
index cd4a125fed44..bf4b75258adc 100644
--- a/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/WseHeader.java
+++ b/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/WseHeader.java
@@ -109,12 +109,10 @@ class WseHeader extends Wse {
* @return A <code>byte</code> array representing this element.
*/
byte[] getBytes() {
- DataOutputStream os; // Used for storing the data
- ByteArrayOutputStream bs = null; // Used for storing the data
+ ByteArrayOutputStream bs = new ByteArrayOutputStream();
+ DataOutputStream os = new DataOutputStream(bs);
try {
- bs = new ByteArrayOutputStream();
- os = new DataOutputStream(bs);
os.write(2); // binary doc indicator
os.write(4); // binary header indicator