summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-08-28 15:43:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-28 16:15:43 +0200
commit938506285925f27ac6b94c076e81ca7c7303be58 (patch)
treee4b55b0f6e53592b8fb954172bfdd0ba4ec6ef9f
parent4e2c95c786ecd5931e6fb7f2ceda5c203350f305 (diff)
Make it clearer that previous change was sound
Change-Id: I0f2440b39e7b99b207755779a82bbeec164de278
-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