Kaydet (Commit) d1d2d329 authored tarafından Noel Grandin's avatar Noel Grandin

java: remove exceptions from throws clauses that are not actually thrown

Change-Id: I9d0f9242c911d9dd05f2229da44a2e8305b3df6a
üst b082fc64
...@@ -55,7 +55,7 @@ class ComponentTreeTraversal implements IFormComponentAction ...@@ -55,7 +55,7 @@ class ComponentTreeTraversal implements IFormComponentAction
control model or a <service scope="com.sun.star.form">FormComponents</service> control model or a <service scope="com.sun.star.form">FormComponents</service>
instance.</p> instance.</p>
*/ */
protected boolean shouldStepInto( XIndexContainer xContainer ) throws com.sun.star.uno.Exception protected boolean shouldStepInto( XIndexContainer xContainer )
{ {
// step down the tree, if possible // step down the tree, if possible
XServiceInfo xSI = UNO.queryServiceInfo( xContainer ); XServiceInfo xSI = UNO.queryServiceInfo( xContainer );
......
...@@ -61,7 +61,7 @@ class LockControlModels extends ComponentTreeTraversal ...@@ -61,7 +61,7 @@ class LockControlModels extends ComponentTreeTraversal
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
@Override @Override
protected boolean shouldStepInto( XIndexContainer xContainer ) throws com.sun.star.uno.Exception protected boolean shouldStepInto( XIndexContainer xContainer )
{ {
if ( !super.shouldStepInto( xContainer ) ) if ( !super.shouldStepInto( xContainer ) )
return false; // don't try to be more clever than our base class return false; // don't try to be more clever than our base class
......
...@@ -76,7 +76,7 @@ public class FLTools ...@@ -76,7 +76,7 @@ public class FLTools
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
/** returns the name of the given form component /** 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, XNamed xNamed = UnoRuntime.queryInterface( XNamed.class,
aFormComponent ); aFormComponent );
......
...@@ -33,7 +33,7 @@ public class SpreadsheetDocument extends DocumentHelper ...@@ -33,7 +33,7 @@ public class SpreadsheetDocument extends DocumentHelper
super( xCtx, implCreateBlankDocument( xCtx, "private:factory/scalc" ) ); 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 ); super( xCtx, document );
} }
......
...@@ -105,7 +105,7 @@ public class DocumentEvents extends JUnitBasedTest ...@@ -105,7 +105,7 @@ public class DocumentEvents extends JUnitBasedTest
} }
//@Test //@Test
public void testCloseByAPI() throws Exception public void testCloseByAPI()
{ {
impl_setupDocCloseTest(); impl_setupDocCloseTest();
// closing the doc by API is synchronous, so do this in a separate thread, else we will get a deadlock // closing the doc by API is synchronous, so do this in a separate thread, else we will get a deadlock
......
...@@ -47,7 +47,7 @@ import static org.junit.Assert.*; ...@@ -47,7 +47,7 @@ import static org.junit.Assert.*;
public class ChartDocumentTest implements DocumentTest public class ChartDocumentTest implements DocumentTest
{ {
public ChartDocumentTest( final XMultiServiceFactory i_orb ) throws com.sun.star.uno.Exception, InterruptedException public ChartDocumentTest( final XMultiServiceFactory i_orb ) throws com.sun.star.uno.Exception
{ {
m_textDocument = OfficeDocument.blankDocument( i_orb, DocumentType.WRITER ); m_textDocument = OfficeDocument.blankDocument( i_orb, DocumentType.WRITER );
......
...@@ -165,7 +165,6 @@ public abstract class DrawingOrPresentationDocumentTest extends DocumentTestBase ...@@ -165,7 +165,6 @@ public abstract class DrawingOrPresentationDocumentTest extends DocumentTestBase
* verifies the given shape has the given size * verifies the given shape has the given size
*/ */
private void verifyShapeGeometry( final Object i_shapeObject, final int i_expectedWidth, final int i_expectedHeight ) private void verifyShapeGeometry( final Object i_shapeObject, final int i_expectedWidth, final int i_expectedHeight )
throws com.sun.star.uno.Exception
{ {
final XShape shape = UnoRuntime.queryInterface( XShape.class, i_shapeObject ); final XShape shape = UnoRuntime.queryInterface( XShape.class, i_shapeObject );
final Size shapeSize = shape.getSize(); final Size shapeSize = shape.getSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment