summaryrefslogtreecommitdiff
path: root/forms
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 /forms
parentb6a83e99c8f4442c3c96198ac816dcb99419a67e (diff)
java: remove exceptions from throws clauses that are not
.. actually thrown Change-Id: Ia326ac7f82e11b948ed0f34e20908a96e7adcd10
Diffstat (limited to 'forms')
-rw-r--r--forms/qa/integration/forms/CellBinding.java2
-rw-r--r--forms/qa/integration/forms/ControlValidation.java2
-rw-r--r--forms/qa/integration/forms/ListBox.java3
-rw-r--r--forms/qa/integration/forms/RadioButtons.java2
-rw-r--r--forms/qa/integration/forms/SpreadsheetDocument.java4
-rw-r--r--forms/qa/integration/forms/TestCase.java4
-rw-r--r--forms/qa/integration/forms/ValueBinding.java2
7 files changed, 9 insertions, 10 deletions
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
{
}