diff options
author | rbuj <robert.buj@gmail.com> | 2014-08-02 12:34:07 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-08-02 11:27:46 +0000 |
commit | 8b4ea551546516f9db78bec3fef841752bfc8b4a (patch) | |
tree | 72a015985750b27abf9ebfce8ca8d955cef3df62 /xmerge | |
parent | 316a6ddf1afd3d3dc7a5b18e7328d888e4230a73 (diff) |
xmerge: The assigned value is never used
Change-Id: I0476332d43138f3403b85d7ce14f4e27376adc0c
Reviewed-on: https://gerrit.libreoffice.org/10688
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
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); |