From 938506285925f27ac6b94c076e81ca7c7303be58 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 28 Aug 2012 15:43:56 +0200 Subject: Make it clearer that previous change was sound Change-Id: I0f2440b39e7b99b207755779a82bbeec164de278 --- .../openoffice/xmerge/converter/xml/sxw/wordsmith/WseHeader.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xmerge') 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 byte 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 -- cgit