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

xmerge: If statement is redundant

Change-Id: Ic36d66e376f6fca536a25db4b3b69b50e2b95ae2
Reviewed-on: https://gerrit.libreoffice.org/10570Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 9f803ee4
...@@ -55,10 +55,7 @@ public class ConverterFactory { ...@@ -55,10 +55,7 @@ public class ConverterFactory {
else else
foundInfo = ConverterInfoMgr.findConverterInfo(mimeTypeOut, mimeTypeIn); foundInfo = ConverterInfoMgr.findConverterInfo(mimeTypeOut, mimeTypeIn);
if (foundInfo != null) return foundInfo != null;
return true;
else
return false;
} }
......
...@@ -143,10 +143,7 @@ public class ColumnRowInfo { ...@@ -143,10 +143,7 @@ public class ColumnRowInfo {
*/ */
public boolean isRow() { public boolean isRow() {
if(type==ROW) return type==ROW;
return true;
else
return false;
} }
/** /**
...@@ -156,10 +153,7 @@ public class ColumnRowInfo { ...@@ -156,10 +153,7 @@ public class ColumnRowInfo {
*/ */
public boolean isColumn() { public boolean isColumn() {
if(type==COLUMN) return type==COLUMN;
return true;
else
return false;
} }
/** /**
...@@ -179,11 +173,8 @@ public class ColumnRowInfo { ...@@ -179,11 +173,8 @@ public class ColumnRowInfo {
*/ */
public boolean isDefaultSize() { public boolean isDefaultSize() {
if( type==ROW && return type==ROW &&
dimension>DEFAULTROWSIZE_MIN && dimension>DEFAULTROWSIZE_MIN &&
dimension<DEFAULTROWSIZE_MAX) dimension<DEFAULTROWSIZE_MAX;
return true;
else
return false;
} }
} }
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