summaryrefslogtreecommitdiff
path: root/reportbuilder
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-05 15:29:21 +0200
committerNoel Grandin <noel@peralex.com>2014-08-08 09:48:20 +0200
commit616b3ad50404f35d84708b3feeb8c66f2f23f1b1 (patch)
treefbff023a34b3cc62b2c5beb592b95e65ce28251b /reportbuilder
parentb6a83e99c8f4442c3c96198ac816dcb99419a67e (diff)
java: remove exceptions from throws clauses that are not
.. actually thrown Change-Id: Ia326ac7f82e11b948ed0f34e20908a96e7adcd10
Diffstat (limited to 'reportbuilder')
-rw-r--r--reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java5
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java16
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java5
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java3
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java4
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java10
6 files changed, 16 insertions, 27 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java b/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java
index d3c36af6461d..48177154468d 100644
--- a/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java
+++ b/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java
@@ -309,10 +309,7 @@ public class SDBCReportDataFactory implements DataSourceFactory
private void fillParameter(final Map parameters,
final XRowSet rowSet, final ParameterDefinition paramDef)
throws SQLException,
- UnknownPropertyException,
- PropertyVetoException,
- IllegalArgumentException,
- WrappedTargetException
+ IllegalArgumentException
{
final ArrayList<?> masterValues = (ArrayList<?>) parameters.get(MASTER_VALUES);
if (masterValues != null && !masterValues.isEmpty())
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
index 41b8458e0c22..3dccfb4249bf 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
@@ -792,7 +792,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
protected void startReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
if (allowBuffering(role))
{
@@ -804,7 +804,6 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
throws IOException, DataSourceException, ReportProcessingException;
protected void startGroup(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
final Object repeatingHeaderOrFooter = attrs.getAttribute(JFreeReportInfo.REPORT_NAMESPACE, "repeating-header-or-footer");
if (OfficeToken.TRUE.equals(repeatingHeaderOrFooter))
@@ -821,12 +820,10 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
protected void startGroupInstance(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
}
protected void startGroupBody(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
}
@@ -993,12 +990,11 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
protected void endGroupBody(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException
{
}
protected void endGroupInstance(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
}
@@ -1012,7 +1008,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
protected void endReportSection(final AttributeMap attrs,
final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException, ReportProcessingException
{
if (allowBuffering(role))
{
@@ -1021,7 +1017,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
protected void endGroup(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
}
@@ -1029,7 +1025,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
throws IOException, DataSourceException, ReportProcessingException;
protected void endBody(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException
{
getXmlWriter().writeCloseTag();
}
@@ -1167,7 +1163,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
}
- public BufferState finishBuffering() throws ReportProcessingException
+ public BufferState finishBuffering()
{
final BufferState state = (BufferState) xmlWriters.pop();
try
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java
index 64257d50d160..8aee4f024a9c 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java
@@ -40,7 +40,6 @@ import org.jfree.layouting.namespace.Namespaces;
import org.jfree.layouting.util.AttributeMap;
import org.jfree.report.JFreeReportBoot;
import org.jfree.report.JFreeReportInfo;
-import org.jfree.report.ReportProcessingException;
import org.jfree.report.structure.Element;
import org.jfree.report.structure.Node;
import org.jfree.report.structure.Section;
@@ -82,7 +81,7 @@ public class StylesWriter
public void writeContentStyles(final OfficeStylesCollection predefined,
final OfficeStylesCollection globals)
- throws IOException, ReportProcessingException
+ throws IOException
{
writeFontFaces(new OfficeStylesCollection[]
{
@@ -96,7 +95,7 @@ public class StylesWriter
public void writeGlobalStyles(final OfficeStylesCollection predefined,
final OfficeStylesCollection globals)
- throws IOException, ReportProcessingException
+ throws IOException
{
if (writeOpeningTag)
{
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
index d17641550e57..2658942fe33c 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
@@ -99,12 +99,11 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
}
protected void startReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
}
protected void endReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
{
}
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 09dcb4cbb5dc..dbe1f4ce1abb 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java
@@ -264,7 +264,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
- protected void startReportSection(final AttributeMap attrs, final int role) throws IOException, DataSourceException, ReportProcessingException
+ protected void startReportSection(final AttributeMap attrs, final int role) throws ReportProcessingException
{
if ((role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER) && (!PageSection.isPrintWithReportHeader(attrs) || !PageSection.isPrintWithReportFooter(attrs)))
{
@@ -276,7 +276,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
- protected void endReportSection(final AttributeMap attrs, final int role) throws IOException, DataSourceException, ReportProcessingException
+ protected void endReportSection(final AttributeMap attrs, final int role) throws IOException, ReportProcessingException
{
if ((role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER) && (!PageSection.isPrintWithReportHeader(attrs) || !PageSection.isPrintWithReportFooter(attrs)))
{
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
index b24b2cf58e6f..486b62d2eee3 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
@@ -1050,7 +1050,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void startReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
sectionHeight = new LengthCalculator();
if (role == OfficeDocumentReportTarget.ROLE_TEMPLATE || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER)
@@ -1099,7 +1099,6 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void startGroup(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
super.startGroup(attrs);
final PageContext pageContext = new PageContext(getCurrentContext());
@@ -1136,7 +1135,6 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void startGroupInstance(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
if (getGroupContext().isGroupWithRepeatingSection())
{
@@ -1145,7 +1143,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void endGroup(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
if (getGroupContext().isGroupWithRepeatingSection())
{
@@ -1177,7 +1175,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void endReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException, ReportProcessingException
{
if (role == ROLE_TEMPLATE || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER)
{
@@ -1386,7 +1384,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void endGroupBody(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException
{
if (tableLayoutConfig == TABLE_LAYOUT_SINGLE_DETAIL_TABLE && detailBandProcessingState == DETAIL_SECTION_OTHER_PRINTED)
{