java: remove exceptions from throws clauses that are not actually thrown
Change-Id: I9d0f9242c911d9dd05f2229da44a2e8305b3df6a
This commit is contained in:
parent
b082fc648f
commit
d1d2d3296b
7 changed files with 6 additions and 7 deletions
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ public class DocumentEvents extends JUnitBasedTest
|
|||
}
|
||||
|
||||
//@Test
|
||||
public void testCloseByAPI() throws Exception
|
||||
public void testCloseByAPI()
|
||||
{
|
||||
impl_setupDocCloseTest();
|
||||
// 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.*;
|
|||
|
||||
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 );
|
||||
|
||||
|
|
|
@ -165,7 +165,6 @@ public abstract class DrawingOrPresentationDocumentTest extends DocumentTestBase
|
|||
* verifies the given shape has the given size
|
||||
*/
|
||||
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 Size shapeSize = shape.getSize();
|
||||
|
|
Loading…
Reference in a new issue