summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-07-27 11:44:47 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-07-28 06:42:53 +0000
commita8df51771d01903cbb06913f9bfa6ceb2b020d42 (patch)
tree718f2c1c66b6ab1194205b159b775336f6028e9b
parent9f803ee4b64e11e481ae9bf92ffac7cbf568675a (diff)
xmerge: If statement is redundant
Change-Id: Ic36d66e376f6fca536a25db4b3b69b50e2b95ae2 Reviewed-on: https://gerrit.libreoffice.org/10570 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java5
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/ColumnRowInfo.java19
2 files changed, 6 insertions, 18 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java
index 700377964f7b..1b4c0d18db17 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java
@@ -55,10 +55,7 @@ public class ConverterFactory {
else
foundInfo = ConverterInfoMgr.findConverterInfo(mimeTypeOut, mimeTypeIn);
- if (foundInfo != null)
- return true;
- else
- return false;
+ return foundInfo != null;
}
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/ColumnRowInfo.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/ColumnRowInfo.java
index 985bee0b8465..b02efb6b7835 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/ColumnRowInfo.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/ColumnRowInfo.java
@@ -143,10 +143,7 @@ public class ColumnRowInfo {
*/
public boolean isRow() {
- if(type==ROW)
- return true;
- else
- return false;
+ return type==ROW;
}
/**
@@ -156,10 +153,7 @@ public class ColumnRowInfo {
*/
public boolean isColumn() {
- if(type==COLUMN)
- return true;
- else
- return false;
+ return type==COLUMN;
}
/**
@@ -179,11 +173,8 @@ public class ColumnRowInfo {
*/
public boolean isDefaultSize() {
- if( type==ROW &&
- dimension>DEFAULTROWSIZE_MIN &&
- dimension<DEFAULTROWSIZE_MAX)
- return true;
- else
- return false;
+ return type==ROW &&
+ dimension>DEFAULTROWSIZE_MIN &&
+ dimension<DEFAULTROWSIZE_MAX;
}
}