diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-06 09:01:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 09:41:29 +0200 |
commit | d1d2d3296b9f98a5144022612d03f6cb419164e5 (patch) | |
tree | ee65efeaa3d9f168df71704e4a5bb833f378d73f /odk | |
parent | b082fc648fbc4c43f992645df10187ca8fe4a584 (diff) |
java: remove exceptions from throws clauses that are not actually thrown
Change-Id: I9d0f9242c911d9dd05f2229da44a2e8305b3df6a
Diffstat (limited to 'odk')
4 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java b/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java index 8bd28f78ef68..1fd4db3600b7 100644 --- a/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java +++ b/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java @@ -55,7 +55,7 @@ class ComponentTreeTraversal implements IFormComponentAction control model or a <service scope="com.sun.star.form">FormComponents</service> instance.</p> */ - protected boolean shouldStepInto( XIndexContainer xContainer ) throws com.sun.star.uno.Exception + protected boolean shouldStepInto( XIndexContainer xContainer ) { // step down the tree, if possible XServiceInfo xSI = UNO.queryServiceInfo( xContainer ); diff --git a/odk/examples/DevelopersGuide/Forms/ControlLock.java b/odk/examples/DevelopersGuide/Forms/ControlLock.java index b917039bf242..a8d93b1b8980 100644 --- a/odk/examples/DevelopersGuide/Forms/ControlLock.java +++ b/odk/examples/DevelopersGuide/Forms/ControlLock.java @@ -61,7 +61,7 @@ class LockControlModels extends ComponentTreeTraversal /* ------------------------------------------------------------------ */ @Override - protected boolean shouldStepInto( XIndexContainer xContainer ) throws com.sun.star.uno.Exception + protected boolean shouldStepInto( XIndexContainer xContainer ) { if ( !super.shouldStepInto( xContainer ) ) return false; // don't try to be more clever than our base class diff --git a/odk/examples/DevelopersGuide/Forms/FLTools.java b/odk/examples/DevelopersGuide/Forms/FLTools.java index 4e673519a606..7759175fd7e8 100644 --- a/odk/examples/DevelopersGuide/Forms/FLTools.java +++ b/odk/examples/DevelopersGuide/Forms/FLTools.java @@ -76,7 +76,7 @@ public class FLTools /* ------------------------------------------------------------------ */ /** returns the name of the given form component */ - public static String getName( Object aFormComponent ) throws com.sun.star.uno.Exception + public static String getName( Object aFormComponent ) { XNamed xNamed = UnoRuntime.queryInterface( XNamed.class, aFormComponent ); diff --git a/odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java b/odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java index 1016f49ca970..9596b01ea9a8 100644 --- a/odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java +++ b/odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java @@ -33,7 +33,7 @@ public class SpreadsheetDocument extends DocumentHelper super( xCtx, implCreateBlankDocument( xCtx, "private:factory/scalc" ) ); } - public SpreadsheetDocument( XComponentContext xCtx, XComponent document ) throws com.sun.star.uno.Exception + public SpreadsheetDocument( XComponentContext xCtx, XComponent document ) { super( xCtx, document ); } |