diff options
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java | 5 | ||||
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/ColumnRowInfo.java | 19 |
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; } } |