diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-03 13:48:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-06 11:45:48 +0200 |
commit | 95e1ecbf89f75e2b298b931c3cc2e0d5655c31ed (patch) | |
tree | dbc8b07b1b7a48dcf08852165c949cd2fa2232dd /reportbuilder | |
parent | e10300dc786beaaa1b126054100d0195a9298b67 (diff) |
remove some unnecessary casts
Change-Id: I63b0ce257b40caa53aef337e953ce8d07862d292
Diffstat (limited to 'reportbuilder')
-rw-r--r-- | reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java index 163818cf0aa4..d8f7cd8f9ead 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java @@ -124,18 +124,14 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget { return 0; } - if (arg0 instanceof ColumnBoundary) + if (boundary > arg0.boundary) { - if (boundary > arg0.boundary) - { - return 1; - } - else - { - return -1; - } + return 1; + } + else + { + return -1; } - return 1; } public boolean equals(final Object obj) |