From 616b3ad50404f35d84708b3feeb8c66f2f23f1b1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Aug 2014 15:29:21 +0200 Subject: java: remove exceptions from throws clauses that are not .. actually thrown Change-Id: Ia326ac7f82e11b948ed0f34e20908a96e7adcd10 --- forms/qa/integration/forms/CellBinding.java | 2 +- forms/qa/integration/forms/ControlValidation.java | 2 +- forms/qa/integration/forms/ListBox.java | 3 +-- forms/qa/integration/forms/RadioButtons.java | 2 +- forms/qa/integration/forms/SpreadsheetDocument.java | 4 ++-- forms/qa/integration/forms/TestCase.java | 4 ++-- forms/qa/integration/forms/ValueBinding.java | 2 +- 7 files changed, 9 insertions(+), 10 deletions(-) (limited to 'forms') diff --git a/forms/qa/integration/forms/CellBinding.java b/forms/qa/integration/forms/CellBinding.java index 2fb0756880e3..0f24220bfea6 100644 --- a/forms/qa/integration/forms/CellBinding.java +++ b/forms/qa/integration/forms/CellBinding.java @@ -98,7 +98,7 @@ public class CellBinding extends complexlib.ComplexTestCase } /* ------------------------------------------------------------------ */ - public void after() throws com.sun.star.uno.Exception, java.lang.Exception + public void after() throws java.lang.Exception { closeDocument(); } diff --git a/forms/qa/integration/forms/ControlValidation.java b/forms/qa/integration/forms/ControlValidation.java index d6d7622731cc..733f4978ea16 100644 --- a/forms/qa/integration/forms/ControlValidation.java +++ b/forms/qa/integration/forms/ControlValidation.java @@ -59,7 +59,7 @@ public class ControlValidation extends complexlib.ComplexTestCase implements com /* ------------------------------------------------------------------ */ /* test framework */ /* ------------------------------------------------------------------ */ - public void before() throws com.sun.star.uno.Exception, java.lang.Exception + public void before() throws java.lang.Exception { m_orb = param.getMSF(); } diff --git a/forms/qa/integration/forms/ListBox.java b/forms/qa/integration/forms/ListBox.java index d6c574973fa9..b46f4a3f62e0 100644 --- a/forms/qa/integration/forms/ListBox.java +++ b/forms/qa/integration/forms/ListBox.java @@ -31,7 +31,6 @@ import com.sun.star.form.runtime.FormFeature; import com.sun.star.form.runtime.XFormController; import com.sun.star.form.runtime.XFormOperations; import com.sun.star.sdb.CommandType; -import com.sun.star.sdbc.SQLException; import com.sun.star.sdbc.XParameters; import com.sun.star.sdbc.XPreparedStatement; import com.sun.star.uno.Exception; @@ -140,7 +139,7 @@ public class ListBox extends TestCase } /* ------------------------------------------------------------------ */ - private String[] impl_getTypedValue( final String _asType, final int _rowNum ) throws SQLException + private String[] impl_getTypedValue( final String _asType, final int _rowNum ) { Map< String, String[] > valueMap = new HashMap< String, String[] >(); valueMap.put( "bigint", new String[] { "1111111111", "222222222" } ); diff --git a/forms/qa/integration/forms/RadioButtons.java b/forms/qa/integration/forms/RadioButtons.java index 3e83af998fef..bd915ad42627 100644 --- a/forms/qa/integration/forms/RadioButtons.java +++ b/forms/qa/integration/forms/RadioButtons.java @@ -59,7 +59,7 @@ public class RadioButtons extends complexlib.ComplexTestCase } /* ------------------------------------------------------------------ */ - public void before() throws com.sun.star.uno.Exception, java.lang.Exception + public void before() throws java.lang.Exception { m_orb = param.getMSF(); } diff --git a/forms/qa/integration/forms/SpreadsheetDocument.java b/forms/qa/integration/forms/SpreadsheetDocument.java index e6c7f920d3c2..d8aaaf8e92b9 100644 --- a/forms/qa/integration/forms/SpreadsheetDocument.java +++ b/forms/qa/integration/forms/SpreadsheetDocument.java @@ -39,7 +39,7 @@ public class SpreadsheetDocument extends DocumentHelper } /* ------------------------------------------------------------------ */ - public SpreadsheetDocument( XMultiServiceFactory orb, XComponent document ) throws com.sun.star.uno.Exception + public SpreadsheetDocument( XMultiServiceFactory orb, XComponent document ) { super( orb, document ); } @@ -47,7 +47,7 @@ public class SpreadsheetDocument extends DocumentHelper /* ------------------------------------------------------------------ */ /** returns the sheets collection */ - public XSpreadsheets getSheets() throws com.sun.star.uno.Exception + public XSpreadsheets getSheets() { XSpreadsheetDocument spreadsheetDoc = UnoRuntime.queryInterface( XSpreadsheetDocument.class, getDocument() diff --git a/forms/qa/integration/forms/TestCase.java b/forms/qa/integration/forms/TestCase.java index a4ab28e48cb3..e3cf9d813237 100644 --- a/forms/qa/integration/forms/TestCase.java +++ b/forms/qa/integration/forms/TestCase.java @@ -42,13 +42,13 @@ public abstract class TestCase extends complexlib.ComplexTestCase implements com } /* ------------------------------------------------------------------ */ - public void before() throws com.sun.star.uno.Exception, java.lang.Exception + public void before() throws java.lang.Exception { m_orb = param.getMSF(); } /* ------------------------------------------------------------------ */ - public void after() throws com.sun.star.uno.Exception, java.lang.Exception + public void after() throws java.lang.Exception { } diff --git a/forms/qa/integration/forms/ValueBinding.java b/forms/qa/integration/forms/ValueBinding.java index 2f4d58aee133..4df2c566068a 100644 --- a/forms/qa/integration/forms/ValueBinding.java +++ b/forms/qa/integration/forms/ValueBinding.java @@ -71,7 +71,7 @@ public class ValueBinding extends integration.forms.TestCase } /* ------------------------------------------------------------------ */ - public void checkBindingProperties() throws com.sun.star.uno.Exception, java.lang.Exception + public void checkBindingProperties() throws java.lang.Exception { } -- cgit