diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 15:29:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:20 +0200 |
commit | 616b3ad50404f35d84708b3feeb8c66f2f23f1b1 (patch) | |
tree | fbff023a34b3cc62b2c5beb592b95e65ce28251b /extensions | |
parent | b6a83e99c8f4442c3c96198ac816dcb99419a67e (diff) |
java: remove exceptions from throws clauses that are not
.. actually thrown
Change-Id: Ia326ac7f82e11b948ed0f34e20908a96e7adcd10
Diffstat (limited to 'extensions')
4 files changed, 6 insertions, 8 deletions
diff --git a/extensions/qa/complex/extensions/OfficeResourceLoader.java b/extensions/qa/complex/extensions/OfficeResourceLoader.java index cbc57f2fc739..0c2c02cb9011 100644 --- a/extensions/qa/complex/extensions/OfficeResourceLoader.java +++ b/extensions/qa/complex/extensions/OfficeResourceLoader.java @@ -54,7 +54,7 @@ public class OfficeResourceLoader } /* ------------------------------------------------------------------ */ - @After public void after() throws com.sun.star.uno.Exception, java.lang.Exception + @After public void after() throws java.lang.Exception { } @@ -94,7 +94,7 @@ public class OfficeResourceLoader } /* ------------------------------------------------------------------ */ - @Test public void checkLocales() throws com.sun.star.uno.Exception, java.lang.Exception + @Test public void checkLocales() throws java.lang.Exception { // en-US bundle (should always be built and thus present and thus found) m_bundle = m_loader.loadBundle( "orl", new Locale( "en", "US", "" ) ); diff --git a/extensions/qa/integration/extensions/ObjectInspector.java b/extensions/qa/integration/extensions/ObjectInspector.java index 9db57723ba9b..bc35f19a389d 100644 --- a/extensions/qa/integration/extensions/ObjectInspector.java +++ b/extensions/qa/integration/extensions/ObjectInspector.java @@ -65,7 +65,7 @@ public class ObjectInspector extends complexlib.ComplexTestCase } /* ------------------------------------------------------------------ */ - public void after() throws com.sun.star.uno.Exception, java.lang.Exception + public void after() throws java.lang.Exception { closeExistentInspector(); } diff --git a/extensions/qa/integration/extensions/TestSkeleton.java b/extensions/qa/integration/extensions/TestSkeleton.java index 64547c3b00b2..798a67612eb8 100644 --- a/extensions/qa/integration/extensions/TestSkeleton.java +++ b/extensions/qa/integration/extensions/TestSkeleton.java @@ -44,13 +44,13 @@ public class TestSkeleton 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(); } /* ------------------------------------------------------------------ */ - public void after() throws com.sun.star.uno.Exception, java.lang.Exception + public void after() throws java.lang.Exception { } diff --git a/extensions/test/pgp/TestPGP.java b/extensions/test/pgp/TestPGP.java index d11164cb0187..ce719a530c9e 100644 --- a/extensions/test/pgp/TestPGP.java +++ b/extensions/test/pgp/TestPGP.java @@ -17,8 +17,6 @@ */ -import java.io.IOException; - import com.sun.star.bridge.UnoUrlResolver; import com.sun.star.bridge.XUnoUrlResolver; import com.sun.star.comp.helper.Bootstrap; @@ -39,7 +37,7 @@ import com.sun.star.uno.XNamingService; public class TestPGP { - static void doSomething(Object r) throws com.sun.star.uno.Exception, IOException, Exception { + static void doSomething(Object r) throws com.sun.star.uno.Exception, Exception { XNamingService rName = UnoRuntime.queryInterface(XNamingService.class, r); if(rName != null) { |