summaryrefslogtreecommitdiffstats
path: root/reportbuilder/java/com/sun/star/report/pentaho/output/text/MasterPageFactory.java
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2010-01-27 13:51:16 +0100
committerIvo Hinkelmann <ihi@openoffice.org>2010-01-27 13:51:16 +0100
commit6163dce52f006f6f5a390eebd000caeaa1c70854 (patch)
treed789b8d74ace47cf1dbeecd505c268be107c6864 /reportbuilder/java/com/sun/star/report/pentaho/output/text/MasterPageFactory.java
parentCWS-TOOLING: integrate CWS vcl108 (diff)
parentAutomated merge with ssh://hg@hg.services.openoffice.org/cws/dba33b (diff)
downloadcore-6163dce52f006f6f5a390eebd000caeaa1c70854.tar.gz
core-6163dce52f006f6f5a390eebd000caeaa1c70854.zip
CWS-TOOLING: integrate CWS dba33d
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/output/text/MasterPageFactory.java')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/output/text/MasterPageFactory.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/output/text/MasterPageFactory.java b/reportbuilder/java/com/sun/star/report/pentaho/output/text/MasterPageFactory.java
index 0a5988a44b94..ca3047a16c16 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/output/text/MasterPageFactory.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/output/text/MasterPageFactory.java
@@ -178,13 +178,9 @@ public class MasterPageFactory
{
return false;
}
- if (templateName != null ? !templateName.equals(
- key.templateName) : key.templateName != null)
- {
- return false;
- }
+ return !(templateName != null ? !templateName.equals(
+ key.templateName) : key.templateName != null);
- return true;
}
public int hashCode()
@@ -196,7 +192,6 @@ public class MasterPageFactory
return result;
}
}
-
// todo: Patch the page-layout ...
private static final String DEFAULT_PAGE_NAME = "Default";
private final OfficeMasterStyles predefinedStyles;
@@ -265,7 +260,7 @@ public class MasterPageFactory
}
catch (CloneNotSupportedException cne)
{
- throw new IllegalStateException("Implementation error: Unable to derive page",cne);
+ throw new IllegalStateException("Implementation error: Unable to derive page", cne);
}
}
@@ -403,7 +398,7 @@ public class MasterPageFactory
}
catch (CloneNotSupportedException e)
{
- throw new IllegalStateException("Clone failed.",e);
+ throw new IllegalStateException("Clone failed.", e);
}
}