Kaydet (Commit) e36edbb3 authored tarafından rbuj's avatar rbuj Kaydeden (comit) Noel Grandin

xmerge: The assigned value is never used

Change-Id: I1c9730d494546b01836c60f49861784a068ca1a0
Reviewed-on: https://gerrit.libreoffice.org/10660Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 23aa8ea1
...@@ -116,7 +116,7 @@ public class XMergeBridge { ...@@ -116,7 +116,7 @@ public class XMergeBridge {
String getFileName(String origName) String getFileName(String origName)
{ {
String name=null; String name;
if (origName !=null) if (origName !=null)
{ {
if(origName.equalsIgnoreCase("")) if(origName.equalsIgnoreCase(""))
...@@ -474,7 +474,7 @@ public class XMergeBridge { ...@@ -474,7 +474,7 @@ public class XMergeBridge {
URI uri=new URI(sURL); URI uri=new URI(sURL);
String newFileName= getPath(uri); String newFileName= getPath(uri);
File newFile=null; File newFile;
if (newFileName.lastIndexOf(".")!=-1){ if (newFileName.lastIndexOf(".")!=-1){
newFile =new File(newFileName.substring(0,newFileName.lastIndexOf("."))+String.valueOf(i)+newFileName.substring(newFileName.lastIndexOf("."))); newFile =new File(newFileName.substring(0,newFileName.lastIndexOf("."))+String.valueOf(i)+newFileName.substring(newFileName.lastIndexOf(".")));
} }
......
...@@ -46,7 +46,7 @@ public class ConverterFactory { ...@@ -46,7 +46,7 @@ public class ConverterFactory {
*/ */
public boolean canConvert(String mimeTypeIn, String mimeTypeOut) { public boolean canConvert(String mimeTypeIn, String mimeTypeOut) {
ConverterInfo foundInfo = null; ConverterInfo foundInfo;
// findConverterInfo expects the second paramenter to be the // findConverterInfo expects the second paramenter to be the
// destination MimeType // destination MimeType
...@@ -73,7 +73,7 @@ public class ConverterFactory { ...@@ -73,7 +73,7 @@ public class ConverterFactory {
*/ */
public Convert getConverter(String mimeTypeIn, String mimeTypeOut) { public Convert getConverter(String mimeTypeIn, String mimeTypeOut) {
ConverterInfo foundInfo = null; ConverterInfo foundInfo;
boolean toOffice; boolean toOffice;
toOffice = ConverterInfo.isValidOfficeType(mimeTypeOut); toOffice = ConverterInfo.isValidOfficeType(mimeTypeOut);
......
...@@ -83,7 +83,7 @@ class OfficeZip { ...@@ -83,7 +83,7 @@ class OfficeZip {
void read(InputStream is) throws IOException { void read(InputStream is) throws IOException {
ZipInputStream zis = new ZipInputStream(is); ZipInputStream zis = new ZipInputStream(is);
ZipEntry ze = null; ZipEntry ze;
int i = -1; int i = -1;
while ((ze = zis.getNextEntry()) != null) { while ((ze = zis.getNextEntry()) != null) {
...@@ -94,7 +94,7 @@ class OfficeZip { ...@@ -94,7 +94,7 @@ class OfficeZip {
ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream();
int len = 0; int len;
byte buffer[] = new byte[BUFFERSIZE]; byte buffer[] = new byte[BUFFERSIZE];
while ((len = zis.read(buffer)) > 0) { while ((len = zis.read(buffer)) > 0) {
......
...@@ -119,9 +119,8 @@ public abstract class NodeIterator implements Iterator { ...@@ -119,9 +119,8 @@ public abstract class NodeIterator implements Iterator {
public boolean equivalent(Object obj1, Object obj2) { public boolean equivalent(Object obj1, Object obj2) {
boolean equal = false; boolean equal = false;
String errMsg = null;
if (!(obj1 instanceof Node && obj2 instanceof Node)) { if (!(obj1 instanceof Node && obj2 instanceof Node)) {
errMsg = Resources.getInstance().getString("NOT_NODE_ERROR"); String errMsg = Resources.getInstance().getString("NOT_NODE_ERROR");
Debug.log(Debug.ERROR, errMsg); Debug.log(Debug.ERROR, errMsg);
} else { } else {
Node node1 = (Node)obj1; Node node1 = (Node)obj1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment