diff options
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java index 7be7b492cd30..f3909beab31d 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java @@ -1131,7 +1131,7 @@ public abstract class OfficeDocument BufferedReader br = new BufferedReader(new InputStreamReader(is, "UTF-8")); StringBuffer buffer = new StringBuffer(); - String str = null; + String str; while ((str = br.readLine()) != null) { @@ -1198,7 +1198,7 @@ public abstract class OfficeDocument BufferedReader br = new BufferedReader(new InputStreamReader(is, "UTF-8")); char[] charArray = new char[4096]; StringBuffer sBuf = new StringBuffer(); - int n = 0; + int n; while ((n=br.read(charArray, 0, charArray.length)) > 0) sBuf.append(charArray, 0, n); |