summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java5
-rw-r--r--bridges/test/testclient.java2
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java2
-rw-r--r--connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java2
-rw-r--r--connectivity/qa/connectivity/tools/CRMDatabase.java2
-rw-r--r--dbaccess/qa/complex/dbaccess/Beamer.java5
-rw-r--r--dbaccess/qa/complex/dbaccess/CopyTableWizard.java2
-rw-r--r--dbaccess/qa/complex/dbaccess/DatabaseDocument.java4
-rw-r--r--dbaccess/qa/complex/dbaccess/PropertyBag.java2
-rw-r--r--extensions/qa/complex/extensions/OfficeResourceLoader.java4
-rw-r--r--extensions/qa/integration/extensions/ObjectInspector.java2
-rw-r--r--extensions/qa/integration/extensions/TestSkeleton.java4
-rw-r--r--extensions/test/pgp/TestPGP.java4
-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
-rw-r--r--framework/qa/complex/desktop/DesktopTerminate.java1
-rw-r--r--framework/qa/complex/disposing/GetServiceWhileDisposingOffice.java1
-rw-r--r--framework/qa/complex/framework/recovery/RecoveryTest.java19
-rw-r--r--framework/qa/complex/framework/recovery/RecoveryTools.java1
-rw-r--r--javaunohelper/test/com/sun/star/lib/uno/helper/Factory_Test.java2
-rw-r--r--nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java2
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInDraw.java3
-rw-r--r--odk/examples/DevelopersGuide/Database/CodeSamples.java2
-rw-r--r--odk/examples/DevelopersGuide/Database/sdbcx.java12
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample.java12
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java9
-rw-r--r--qadevOOo/runner/convwatch/DocumentConverter.java9
-rw-r--r--qadevOOo/runner/convwatch/OfficePrint.java2
-rw-r--r--qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java2
-rw-r--r--qadevOOo/runner/helper/ConfigurationRead.java6
-rw-r--r--qadevOOo/runner/helper/PropertyHandlerImpl.java3
-rw-r--r--qadevOOo/runner/util/SOfficeFactory.java14
-rw-r--r--qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java2
-rw-r--r--qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java3
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBookmark.java11
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBookmarks.java13
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXCell.java7
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXCellRange.java10
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTableCellText.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTableColumns.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTableRows.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTable.java10
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java11
-rw-r--r--reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java5
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java16
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java5
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java3
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java4
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java10
-rw-r--r--scripting/java/com/sun/star/script/framework/container/Parcel.java3
-rw-r--r--scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java2
-rw-r--r--scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java2
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java1
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java8
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java24
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java8
-rw-r--r--scripting/workben/installer/IdeVersion.java4
-rw-r--r--scripting/workben/installer/InstUtil.java34
-rw-r--r--sw/qa/complex/writer/CheckBookmarks.java6
-rw-r--r--sw/qa/complex/writer/CheckCrossReferences.java2
-rw-r--r--sw/qa/complex/writer/CheckFlies.java2
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/Helper.java2
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java10
-rw-r--r--toolkit/test/accessibility/AccessibleTextHandler.java9
-rw-r--r--unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java4
-rw-r--r--wizards/com/sun/star/wizards/common/FileAccess.java4
-rw-r--r--wizards/com/sun/star/wizards/db/SQLQueryComposer.java2
-rw-r--r--wizards/com/sun/star/wizards/form/FormWizard.java3
-rw-r--r--wizards/com/sun/star/wizards/form/StyleApplier.java2
-rw-r--r--wizards/com/sun/star/wizards/form/UIControlArranger.java3
-rw-r--r--wizards/com/sun/star/wizards/report/DBColumn.java11
-rw-r--r--wizards/com/sun/star/wizards/report/ReportTextDocument.java90
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java14
-rw-r--r--wizards/com/sun/star/wizards/text/TextFieldHandler.java17
-rw-r--r--wizards/com/sun/star/wizards/ui/DocumentPreview.java6
-rw-r--r--wizards/com/sun/star/wizards/ui/UnoDialog.java36
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java10
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java14
85 files changed, 193 insertions, 449 deletions
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index bc16aea5186e..1635717fd156 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -351,9 +351,6 @@ public class OOoBean
the currently displayed document.
*/
public synchronized void clearDocument( boolean bClearStateToo )
- throws
- com.sun.star.util.CloseVetoException,
- NoConnectionException
{
// TBD
clear();
@@ -1036,8 +1033,6 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
{@link #setAllBarsVisible setAllBarsVisible}.
*/
protected void applyToolVisibilities()
- throws
- java.lang.InterruptedException
{
bIgnoreVisibility = true;
setMenuBarVisible( bMenuBarVisible );
diff --git a/bridges/test/testclient.java b/bridges/test/testclient.java
index 873e8de36e74..41e501060cbd 100644
--- a/bridges/test/testclient.java
+++ b/bridges/test/testclient.java
@@ -62,7 +62,7 @@ class MyCallMe implements XCallMe
}
// Methods
- public void call( /*IN*/String s, /*IN*/int nToDo ) throws test.TestBridgeException, com.sun.star.uno.RuntimeException
+ public void call( /*IN*/String s, /*IN*/int nToDo ) throws com.sun.star.uno.RuntimeException
{
}
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
index 71629ec9f561..3e460a7c48f8 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
@@ -73,7 +73,7 @@ public class StorageFileAccess implements org.hsqldb.lib.FileAccess{
public class FileSync implements FileAccess.FileSync
{
NativeOutputStreamHelper os;
- FileSync(NativeOutputStreamHelper _os) throws java.io.IOException
+ FileSync(NativeOutputStreamHelper _os)
{
os = _os;
}
diff --git a/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java b/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java
index 822f1bc1fefd..6e2c214692e6 100644
--- a/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java
+++ b/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java
@@ -49,7 +49,7 @@ public class JdbcLongVarCharTest extends ComplexTestCase
return "LongVarCharTest";
}
- public void testLongVarChar() throws com.sun.star.uno.Exception, com.sun.star.beans.UnknownPropertyException
+ public void testLongVarChar()
{
try
diff --git a/connectivity/qa/connectivity/tools/CRMDatabase.java b/connectivity/qa/connectivity/tools/CRMDatabase.java
index 57b9e857b2e4..974bfc1a1100 100644
--- a/connectivity/qa/connectivity/tools/CRMDatabase.java
+++ b/connectivity/qa/connectivity/tools/CRMDatabase.java
@@ -105,7 +105,7 @@ public class CRMDatabase
}
- public void saveAndClose() throws SQLException, IOException
+ public void saveAndClose() throws IOException
{
XDatabaseDocumentUI ui = getDocumentUI();
if ( ui != null )
diff --git a/dbaccess/qa/complex/dbaccess/Beamer.java b/dbaccess/qa/complex/dbaccess/Beamer.java
index 5c9af57354e8..f7e0a66b6e1d 100644
--- a/dbaccess/qa/complex/dbaccess/Beamer.java
+++ b/dbaccess/qa/complex/dbaccess/Beamer.java
@@ -36,9 +36,6 @@ import com.sun.star.uno.UnoRuntime;
import com.sun.star.util.URL;
import com.sun.star.util.XURLTransformer;
import com.sun.star.view.XSelectionSupplier;
-import java.io.IOException;
-
-
// ---------- junit imports -----------------
import org.junit.After;
import org.junit.Before;
@@ -81,7 +78,7 @@ public class Beamer extends TestCase
@Test
- public void testBeamer() throws Exception, IOException, java.lang.Exception
+ public void testBeamer() throws Exception, java.lang.Exception
{
final XController controller = docModel.getCurrentController();
final XFrame frame = controller.getFrame();
diff --git a/dbaccess/qa/complex/dbaccess/CopyTableWizard.java b/dbaccess/qa/complex/dbaccess/CopyTableWizard.java
index 419d6782d19e..75eb92ef548f 100644
--- a/dbaccess/qa/complex/dbaccess/CopyTableWizard.java
+++ b/dbaccess/qa/complex/dbaccess/CopyTableWizard.java
@@ -148,7 +148,7 @@ public class CopyTableWizard extends CRMBasedTestCase
}
}
- private void copyTable(final String tableName, final XConnection sourceConnection, final XConnection destConnection) throws Exception, IOException, java.lang.Exception
+ private void copyTable(final String tableName, final XConnection sourceConnection, final XConnection destConnection) throws Exception, java.lang.Exception
{
final XInteractionHandler interAction = new CopyTableInterActionHandler();
diff --git a/dbaccess/qa/complex/dbaccess/DatabaseDocument.java b/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
index c6b12df2e966..faaad37a9842 100644
--- a/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
+++ b/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
@@ -347,7 +347,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document.
}
- private void impl_closeDocument(XModel _databaseDoc) throws CloseVetoException, IOException, Exception
+ private void impl_closeDocument(XModel _databaseDoc) throws CloseVetoException, Exception
{
final XCloseable closeDoc = UnoRuntime.queryInterface(XCloseable.class, _databaseDoc);
closeDoc.close(true);
@@ -511,7 +511,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document.
}
- private void impl_storeDocument( final XModel _document ) throws Exception, IOException
+ private void impl_storeDocument( final XModel _document ) throws Exception
{
// store the document
final String documentURL = FileHelper.getOOoCompatibleFileURL( _document.getURL() );
diff --git a/dbaccess/qa/complex/dbaccess/PropertyBag.java b/dbaccess/qa/complex/dbaccess/PropertyBag.java
index 941549c67223..2c313df7d5c8 100644
--- a/dbaccess/qa/complex/dbaccess/PropertyBag.java
+++ b/dbaccess/qa/complex/dbaccess/PropertyBag.java
@@ -203,7 +203,7 @@ public class PropertyBag extends TestCase
}
@Test
- public void checkDynamicSet() throws com.sun.star.uno.Exception
+ public void checkDynamicSet()
{
System.out.println( "checking proper dynamic of the set" );
createStandardBag( false );
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) {
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
{
}
diff --git a/framework/qa/complex/desktop/DesktopTerminate.java b/framework/qa/complex/desktop/DesktopTerminate.java
index 468dcc59f478..dc75566355b9 100644
--- a/framework/qa/complex/desktop/DesktopTerminate.java
+++ b/framework/qa/complex/desktop/DesktopTerminate.java
@@ -147,7 +147,6 @@ public class DesktopTerminate
}
@AfterClass public static void tearDownConnection()
- throws InterruptedException, com.sun.star.uno.Exception
{
System.out.println("tearDownConnection()");
// don't do a tearDown here, desktop is already terminated.
diff --git a/framework/qa/complex/disposing/GetServiceWhileDisposingOffice.java b/framework/qa/complex/disposing/GetServiceWhileDisposingOffice.java
index 6d042dd8ac18..031dfd5d4469 100644
--- a/framework/qa/complex/disposing/GetServiceWhileDisposingOffice.java
+++ b/framework/qa/complex/disposing/GetServiceWhileDisposingOffice.java
@@ -87,7 +87,6 @@ public class GetServiceWhileDisposingOffice
@AfterClass
public static void tearDownConnection()
- throws InterruptedException, com.sun.star.uno.Exception
{
System.out.println("tearDownConnection()");
// Office is already terminated.
diff --git a/framework/qa/complex/framework/recovery/RecoveryTest.java b/framework/qa/complex/framework/recovery/RecoveryTest.java
index 4d326dc82582..c022e17d9b97 100644
--- a/framework/qa/complex/framework/recovery/RecoveryTest.java
+++ b/framework/qa/complex/framework/recovery/RecoveryTest.java
@@ -281,12 +281,7 @@ public class RecoveryTest extends ComplexTestCase {
if (cancel) {
log.println("clicking 'Cancel' button...");
- try{
- rt.clickThreadButton(xMSF, xWindow, "Cancel");
- } catch (com.sun.star.accessibility.IllegalAccessibleComponentStateException e){
- failed("Could not click 'Cancel' at CrashReporter Dialog");
- }
-
+ rt.clickThreadButton(xMSF, xWindow, "Cancel");
}
else {
log.println("clicking 'Next' button...");
@@ -377,11 +372,7 @@ public class RecoveryTest extends ComplexTestCase {
if (cancel) {
log.println("clicking 'Cancel' button...");
- try{
- rt.clickThreadButton(xMSF, xWindow, "Cancel");
- } catch (com.sun.star.accessibility.IllegalAccessibleComponentStateException e){
- failed("Could not click 'Cancel' at recovery-dialog.");
- }
+ rt.clickThreadButton(xMSF, xWindow, "Cancel");
}
else {
@@ -394,11 +385,7 @@ public class RecoveryTest extends ComplexTestCase {
} else {
log.println("do not recover: clicking 'Cancel' button...");
- try{
- rt.clickThreadButton(xMSF, xWindow, "Cancel");
- } catch (com.sun.star.accessibility.IllegalAccessibleComponentStateException e){
- failed("Could not click 'Cancel' at recovery-dialog");
- }
+ rt.clickThreadButton(xMSF, xWindow, "Cancel");
}
} catch (Exception e){
diff --git a/framework/qa/complex/framework/recovery/RecoveryTools.java b/framework/qa/complex/framework/recovery/RecoveryTools.java
index da7948e3d2af..799b794c1b20 100644
--- a/framework/qa/complex/framework/recovery/RecoveryTools.java
+++ b/framework/qa/complex/framework/recovery/RecoveryTools.java
@@ -300,7 +300,6 @@ public class RecoveryTools {
}
public void clickThreadButton(XMultiServiceFactory xMSF, XWindow xWindow, String buttonName)
- throws com.sun.star.accessibility.IllegalAccessibleComponentStateException
{
KlickButtonThread kbt = new KlickButtonThread(xMSF, xWindow, buttonName);
kbt.start();
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/Factory_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/Factory_Test.java
index bb8d053ebcfa..092c9fcfc291 100644
--- a/javaunohelper/test/com/sun/star/lib/uno/helper/Factory_Test.java
+++ b/javaunohelper/test/com/sun/star/lib/uno/helper/Factory_Test.java
@@ -50,7 +50,6 @@ public class Factory_Test
}
public Factory_Test( XComponentContext xContext )
- throws com.sun.star.uno.Exception
{
if (null == xContext.getValueByName( "/singletons/com.sun.star.lang.theServiceManager" ))
{
@@ -60,7 +59,6 @@ public class Factory_Test
}
public static Object __create( XComponentContext xContext )
- throws com.sun.star.uno.Exception
{
return new Factory_Test( xContext );
}
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java
index ffe03200e4cb..5840d5a39573 100644
--- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java
+++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalFile.java
@@ -27,7 +27,7 @@ public class GlobalFile {
* return null.
*/
public static File createTempDir(String prefix, String directory)
- throws IOException {
+ {
File f = null;
String tempDir;
boolean isCreated = false;
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
index ae1bd973f8be..eff07574eeb0 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
@@ -201,8 +201,7 @@ public class ChartInDraw
public void testThreeD()
throws RuntimeException, UnknownPropertyException, PropertyVetoException,
- com.sun.star.lang.IllegalArgumentException, WrappedTargetException,
- com.sun.star.lang.IndexOutOfBoundsException
+ com.sun.star.lang.IllegalArgumentException, WrappedTargetException
{
XPropertySet aDiaProp = UnoRuntime.queryInterface( XPropertySet.class, maDiagram );
Boolean aTrue = new Boolean( true );
diff --git a/odk/examples/DevelopersGuide/Database/CodeSamples.java b/odk/examples/DevelopersGuide/Database/CodeSamples.java
index 58458c6f1535..d714aadfce57 100644
--- a/odk/examples/DevelopersGuide/Database/CodeSamples.java
+++ b/odk/examples/DevelopersGuide/Database/CodeSamples.java
@@ -113,7 +113,7 @@ public class CodeSamples
}
// check if the connection is not null aand dispose it later on.
- public static void checkConnection(XConnection con) throws com.sun.star.uno.Exception
+ public static void checkConnection(XConnection con)
{
if(con != null)
{
diff --git a/odk/examples/DevelopersGuide/Database/sdbcx.java b/odk/examples/DevelopersGuide/Database/sdbcx.java
index ebffb80dfc7e..4f73c8bb8286 100644
--- a/odk/examples/DevelopersGuide/Database/sdbcx.java
+++ b/odk/examples/DevelopersGuide/Database/sdbcx.java
@@ -176,7 +176,7 @@ public class sdbcx
// 15. example
// print all columns of a XColumnsSupplier
- public static void printColumns(XColumnsSupplier xColumnsSup) throws com.sun.star.uno.Exception,SQLException
+ public static void printColumns(XColumnsSupplier xColumnsSup)
{
System.out.println("Example printColumns");
// the table must be at least support a XColumnsSupplier interface
@@ -190,7 +190,7 @@ public class sdbcx
// 16. example
// print all keys inclusive the columns of a key
- public static void printKeys(XColumnsSupplier xColumnsSup) throws com.sun.star.uno.Exception,SQLException
+ public static void printKeys(XColumnsSupplier xColumnsSup) throws com.sun.star.uno.Exception
{
System.out.println("Example printKeys");
XKeysSupplier xKeysSup = UnoRuntime.queryInterface(XKeysSupplier.class,xColumnsSup);
@@ -212,7 +212,7 @@ public class sdbcx
// 17. example
// print all keys inclusive the columns of a key
- public static void printIndexes(XColumnsSupplier xColumnsSup) throws com.sun.star.uno.Exception,SQLException
+ public static void printIndexes(XColumnsSupplier xColumnsSup) throws com.sun.star.uno.Exception
{
System.out.println("Example printIndexes");
XIndexesSupplier xIndexesSup = UnoRuntime.queryInterface(XIndexesSupplier.class,xColumnsSup);
@@ -235,7 +235,7 @@ public class sdbcx
// 18. example
// column properties
- public static void printColumnProperties(Object column) throws com.sun.star.uno.Exception,SQLException
+ public static void printColumnProperties(Object column) throws com.sun.star.uno.Exception
{
System.out.println("Example printColumnProperties");
XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class,column);
@@ -260,7 +260,7 @@ public class sdbcx
// 19. example
// index properties
- public static void printIndexProperties(Object index) throws com.sun.star.uno.Exception,SQLException
+ public static void printIndexProperties(Object index) throws com.sun.star.uno.Exception
{
System.out.println("Example printIndexProperties");
XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class,index);
@@ -275,7 +275,7 @@ public class sdbcx
// 20. example
// key properties
- public static void printKeyProperties(Object key) throws com.sun.star.uno.Exception,SQLException
+ public static void printKeyProperties(Object key) throws com.sun.star.uno.Exception
{
System.out.println("Example printKeyProperties");
XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class,key);
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index 10bdcc37f2b8..07fa1106086f 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -270,7 +270,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
- public short executeDialogWithembeddedExampleSnippets() throws com.sun.star.script.BasicErrorException {
+ public short executeDialogWithembeddedExampleSnippets() {
if (m_xWindowPeer == null){
createWindowPeer();
}
@@ -282,7 +282,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
}
- public short executeDialog() throws com.sun.star.script.BasicErrorException {
+ public short executeDialog() {
if (m_xWindowPeer == null) {
createWindowPeer();
}
@@ -299,7 +299,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
}
- public void initialize(String[] PropertyNames, Object[] PropertyValues) throws com.sun.star.script.BasicErrorException{
+ public void initialize(String[] PropertyNames, Object[] PropertyValues) {
try{
XMultiPropertySet xMultiPropertySet = UnoRuntime.queryInterface(XMultiPropertySet.class, m_xDlgModelNameContainer);
xMultiPropertySet.setPropertyValues(PropertyNames, PropertyValues);
@@ -317,7 +317,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* @return
* @throws java.lang.Exception
*/
- public XWindowPeer createWindowPeer(XWindowPeer _xWindowParentPeer) throws com.sun.star.script.BasicErrorException{
+ public XWindowPeer createWindowPeer(XWindowPeer _xWindowParentPeer) {
try{
if (_xWindowParentPeer == null){
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class, m_xDlgContainer);
@@ -357,7 +357,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* @return
* @throws java.lang.Exception
*/
- public XWindowPeer createWindowPeer() throws com.sun.star.script.BasicErrorException{
+ public XWindowPeer createWindowPeer() {
return createWindowPeer(null);
}
@@ -366,7 +366,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
}
- public Object insertControlModel(String ServiceName, String sName, String[] sProperties, Object[] sValues) throws com.sun.star.script.BasicErrorException{
+ public Object insertControlModel(String ServiceName, String sName, String[] sProperties, Object[] sValues) {
try {
Object oControlModel = m_xMSFDialogModel.createInstance(ServiceName);
XMultiPropertySet xControlMultiPropertySet = UnoRuntime.queryInterface(XMultiPropertySet.class, oControlModel);
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
index da90531248b2..63b13da77fa2 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
@@ -122,8 +122,7 @@ public class LinguisticExamples
/** Get the SpellChecker to be used.
*/
public boolean GetSpell()
- throws com.sun.star.uno.Exception,
- com.sun.star.uno.RuntimeException
+ throws com.sun.star.uno.RuntimeException
{
if (mxLinguSvcMgr != null)
mxSpell = mxLinguSvcMgr.getSpellChecker();
@@ -133,8 +132,7 @@ public class LinguisticExamples
/** Get the Hyphenator to be used.
*/
public boolean GetHyph()
- throws com.sun.star.uno.Exception,
- com.sun.star.uno.RuntimeException
+ throws com.sun.star.uno.RuntimeException
{
if (mxLinguSvcMgr != null)
mxHyph = mxLinguSvcMgr.getHyphenator();
@@ -144,8 +142,7 @@ public class LinguisticExamples
/** Get the Thesaurus to be used.
*/
public boolean GetThes()
- throws com.sun.star.uno.Exception,
- com.sun.star.uno.RuntimeException
+ throws com.sun.star.uno.RuntimeException
{
if (mxLinguSvcMgr != null)
mxThes = mxLinguSvcMgr.getThesaurus();
diff --git a/qadevOOo/runner/convwatch/DocumentConverter.java b/qadevOOo/runner/convwatch/DocumentConverter.java
index 17877459edb2..758037012cdb 100644
--- a/qadevOOo/runner/convwatch/DocumentConverter.java
+++ b/qadevOOo/runner/convwatch/DocumentConverter.java
@@ -234,14 +234,7 @@ public class DocumentConverter extends EnhancedComplexTestCase
}
else
{
- try
- {
- OfficePrint.convertDocument(_sInputFile, _sReferencePath, aGTA);
- }
- catch(ConvWatchCancelException e)
- {
- assure(e.getMessage(), false);
- }
+ OfficePrint.convertDocument(_sInputFile, _sReferencePath, aGTA);
}
if (aGTA.restartOffice())
diff --git a/qadevOOo/runner/convwatch/OfficePrint.java b/qadevOOo/runner/convwatch/OfficePrint.java
index 6476f44e4226..ba3e03c298e9 100644
--- a/qadevOOo/runner/convwatch/OfficePrint.java
+++ b/qadevOOo/runner/convwatch/OfficePrint.java
@@ -1064,7 +1064,7 @@ public class OfficePrint {
}
- public static void convertDocument(String _sInputFile, String _sOutputPath, GraphicalTestArguments _aGTA) throws ConvWatchCancelException
+ public static void convertDocument(String _sInputFile, String _sOutputPath, GraphicalTestArguments _aGTA)
{
XMultiServiceFactory xMSF = _aGTA.getMultiServiceFactory();
if (xMSF == null)
diff --git a/qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java b/qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java
index 75acf919b130..3df97f5f2d8d 100644
--- a/qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java
+++ b/qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java
@@ -878,7 +878,7 @@ public class OpenOfficePostscriptCreator implements IOffice
}
- public void convertDocument(String _sInputFile, String _sOutputPath, ParameterHelper _aGTA) throws OfficeException
+ public void convertDocument(String _sInputFile, String _sOutputPath, ParameterHelper _aGTA)
{
XMultiServiceFactory xMSF = _aGTA.getMultiServiceFactory();
if (xMSF == null)
diff --git a/qadevOOo/runner/helper/ConfigurationRead.java b/qadevOOo/runner/helper/ConfigurationRead.java
index a3af03c81ee3..30c8ee2d0c4b 100644
--- a/qadevOOo/runner/helper/ConfigurationRead.java
+++ b/qadevOOo/runner/helper/ConfigurationRead.java
@@ -76,11 +76,8 @@ public class ConfigurationRead {
* @param name The hierarchical name of a subnode.
* @return True, if the node exists.
*/
- public boolean hasByHieracrhicalName(String name) throws NoSuchElementException,
- com.sun.star.lang.WrappedTargetException {
-
+ public boolean hasByHieracrhicalName(String name) {
return root.hasByHierarchicalName(name);
-
}
@@ -89,7 +86,6 @@ public class ConfigurationRead {
* @return All elements of the root node.
*/
public String[] getRootNodeNames() {
-
XNameAccess xName = UnoRuntime.queryInterface(XNameAccess.class, root);
String[]names = xName.getElementNames();
return names;
diff --git a/qadevOOo/runner/helper/PropertyHandlerImpl.java b/qadevOOo/runner/helper/PropertyHandlerImpl.java
index 01223bdd1f54..873edc4782ed 100644
--- a/qadevOOo/runner/helper/PropertyHandlerImpl.java
+++ b/qadevOOo/runner/helper/PropertyHandlerImpl.java
@@ -17,7 +17,6 @@
*/
package helper;
-import com.sun.star.beans.UnknownPropertyException;
import com.sun.star.inspection.LineDescriptor;
import com.sun.star.inspection.XPropertyControlFactory;
import com.sun.star.inspection.XPropertyHandler;
@@ -240,7 +239,7 @@ public class PropertyHandlerImpl implements XPropertyHandler{
/**
* This method currently does nothing
*/
- public void describePropertyLine(String string, LineDescriptor[] lineDescriptor, XPropertyControlFactory xPropertyControlFactory) throws UnknownPropertyException, com.sun.star.lang.NullPointerException {
+ public void describePropertyLine(String string, LineDescriptor[] lineDescriptor, XPropertyControlFactory xPropertyControlFactory) {
}
}
diff --git a/qadevOOo/runner/util/SOfficeFactory.java b/qadevOOo/runner/util/SOfficeFactory.java
index f464ea88e6c8..72ca975c540e 100644
--- a/qadevOOo/runner/util/SOfficeFactory.java
+++ b/qadevOOo/runner/util/SOfficeFactory.java
@@ -241,7 +241,7 @@ public class SOfficeFactory {
* creates a simple TextTable defaultet to 2 rows and 2 columns
*/
public static XTextTable createTextTable(XTextDocument xTextDoc)
- throws com.sun.star.uno.Exception {
+ {
TableDsc tDsc = new TableDsc();
InstCreator instCreate = new InstCreator(xTextDoc, tDsc);
@@ -255,7 +255,7 @@ public class SOfficeFactory {
*/
public static XTextTable createTextTable(XTextDocument xTextDoc,
int rows, int columns)
- throws com.sun.star.uno.Exception {
+ {
TableDsc tDsc = new TableDsc(rows, columns);
InstCreator instCreate = new InstCreator(xTextDoc, tDsc);
@@ -269,7 +269,7 @@ public class SOfficeFactory {
* ... to be continued
*/
public static XTextFrame createTextFrame(XTextDocument xTextDoc)
- throws com.sun.star.uno.Exception {
+ {
FrameDsc tDsc = new FrameDsc();
InstCreator instCreate = new InstCreator(xTextDoc, tDsc);
@@ -293,7 +293,7 @@ public class SOfficeFactory {
}
public static void insertString(XTextDocument xTextDoc, String cString)
- throws com.sun.star.uno.Exception {
+ {
XText xText = xTextDoc.getText();
XText oText = UnoRuntime.queryInterface(
XText.class, xText);
@@ -328,7 +328,7 @@ public class SOfficeFactory {
* the method createBookmark
*/
public static XTextContent createBookmark(XTextDocument xTextDoc)
- throws com.sun.star.uno.Exception {
+ {
BookmarkDsc tDsc = new BookmarkDsc();
InstCreator instCreate = new InstCreator(xTextDoc, tDsc);
@@ -342,7 +342,7 @@ public class SOfficeFactory {
* the method createReferenceMark
*/
public static XTextContent createReferenceMark(XTextDocument xTextDoc)
- throws com.sun.star.uno.Exception {
+ {
ReferenceMarkDsc tDsc = new ReferenceMarkDsc();
InstCreator instCreate = new InstCreator(xTextDoc, tDsc);
@@ -356,7 +356,7 @@ public class SOfficeFactory {
* the method createFootnote
*/
public static XTextContent createFootnote(XTextDocument xTextDoc)
- throws com.sun.star.uno.Exception {
+ {
FootnoteDsc tDsc = new FootnoteDsc();
InstCreator instCreate = new InstCreator(xTextDoc, tDsc);
diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java
index ba8de5e930f4..0a939d78287b 100644
--- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java
+++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java
@@ -210,7 +210,7 @@ public class _XTreeControl extends MultiMethodTest {
}
}
- public void _isNodeExpanded() throws ExpandVetoException{
+ public void _isNodeExpanded() {
boolean bOK = true;
diff --git a/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java b/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java
index eae1c88d5a93..d2ab01f456cb 100644
--- a/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java
+++ b/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java
@@ -18,7 +18,6 @@
package ifc.registry;
-import com.sun.star.registry.CannotRegisterImplementationException;
import com.sun.star.registry.XImplementationRegistration;
import com.sun.star.registry.XSimpleRegistry;
import com.sun.star.uno.RuntimeException;
@@ -62,7 +61,7 @@ public class _XImplementationRegistration extends MultiMethodTest {
*
*/
public void _registerImplementation()
- throws CannotRegisterImplementationException, RuntimeException
+ throws RuntimeException
{
url = util.utils.getFullTestURL("qadevlibs/MyPersistObjectImpl.jar");
loader = "com.sun.star.loader.Java2";
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java
index 41cfbbe74abb..ffd2d9239ed8 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java
@@ -69,13 +69,7 @@ public class SwAccessibleTableCellView extends TestCase {
SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
- try {
- oTable = SOfficeFactory.createTextTable(xTextDoc);
- } catch (com.sun.star.uno.Exception e) {
- e.printStackTrace(log);
- throw new StatusException("Couldn't create TextTable : " +
- e.getMessage(), e);
- }
+ oTable = SOfficeFactory.createTextTable(xTextDoc);
try {
SOfficeFactory.insertTextContent(xTextDoc, oTable);
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java
index 0f776b5700a8..c6a8d23739f0 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java
@@ -71,13 +71,7 @@ public class SwAccessibleTableView extends TestCase {
XTextTable oTable = null;
SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF());
- try {
- oTable = SOfficeFactory.createTextTable( xTextDoc );
- } catch ( com.sun.star.uno.Exception e ) {
- e.printStackTrace( log );
- throw new StatusException("Couldn't create TextTable : " +
- e.getMessage(), e);
- }
+ oTable = SOfficeFactory.createTextTable( xTextDoc );
try {
SOfficeFactory.insertTextContent(xTextDoc, oTable );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
index d15058ae2908..c351e76d454a 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
@@ -87,14 +87,9 @@ public class SwXBookmark extends TestCase {
XInterface oObj = null;
Object instance = null;
log.println( "creating a test environment" );
- try {
- oObj = SOfficeFactory.createBookmark( xTextDoc );
- SOfficeFactory.insertTextContent( xTextDoc, (XTextContent) oObj );
- instance = SOF.createInstance(xTextDoc,"com.sun.star.text.Bookmark");
- } catch ( com.sun.star.uno.Exception e ) {
- e.printStackTrace( log );
- throw new StatusException( "Couldn't create Bookmark", e );
- }
+ oObj = SOfficeFactory.createBookmark( xTextDoc );
+ SOfficeFactory.insertTextContent( xTextDoc, (XTextContent) oObj );
+ instance = SOF.createInstance(xTextDoc,"com.sun.star.text.Bookmark");
log.println( "creating a new environment for bodytext object" );
TestEnvironment tEnv = new TestEnvironment( oObj );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java
index af67c95200e9..6cbc6053630b 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java
@@ -85,15 +85,10 @@ public class SwXBookmarks extends TestCase {
XInterface oObj = null;
log.println( "creating a test environment" );
- try {
- oObj = SOfficeFactory.createBookmark( xTextDoc );
- SOfficeFactory.insertTextContent( xTextDoc, (XTextContent) oObj );
- oObj = SOfficeFactory.createBookmark( xTextDoc );
- SOfficeFactory.insertTextContent( xTextDoc, (XTextContent) oObj );
- } catch( com.sun.star.uno.Exception e ) {
- e.printStackTrace( log );
- throw new StatusException( "Couldn't create Bookmark", e );
- }
+ oObj = SOfficeFactory.createBookmark( xTextDoc );
+ SOfficeFactory.insertTextContent( xTextDoc, (XTextContent) oObj );
+ oObj = SOfficeFactory.createBookmark( xTextDoc );
+ SOfficeFactory.insertTextContent( xTextDoc, (XTextContent) oObj );
XBookmarksSupplier oBSupp = UnoRuntime.queryInterface(XBookmarksSupplier.class, xTextDoc);
XNameAccess oBookNA = oBSupp.getBookmarks();
diff --git a/qadevOOo/tests/java/mod/_sw/SwXCell.java b/qadevOOo/tests/java/mod/_sw/SwXCell.java
index b4a0a827e059..5ed1172b3e3c 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXCell.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXCell.java
@@ -91,12 +91,7 @@ public class SwXCell extends TestCase {
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
log.println( "creating a test environment" );
- try {
- oTable = SOfficeFactory.createTextTable(xTextDoc, 3, 4);
- } catch ( com.sun.star.uno.Exception e ) {
- log.println("Unable to create TextTable...");
- e.printStackTrace(log);
- }
+ oTable = SOfficeFactory.createTextTable(xTextDoc, 3, 4);
try {
SOfficeFactory.insertTextContent( xTextDoc, oTable );
} catch ( com.sun.star.lang.IllegalArgumentException e ) {
diff --git a/qadevOOo/tests/java/mod/_sw/SwXCellRange.java b/qadevOOo/tests/java/mod/_sw/SwXCellRange.java
index b566c1342f47..2069fd9fb65b 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXCellRange.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXCellRange.java
@@ -92,14 +92,8 @@ public class SwXCellRange extends TestCase {
XTextTable the_table = null;
XInterface oObj = null;
- try {
- the_table = SOfficeFactory.createTextTable( xTextDoc );
- the_table.initialize(5, 5);
- } catch ( com.sun.star.uno.Exception e ) {
- e.printStackTrace( log );
- throw new StatusException("Couldn't create testobj: "
- +e.getMessage(),e);
- }
+ the_table = SOfficeFactory.createTextTable( xTextDoc );
+ the_table.initialize(5, 5);
if( SOfficeFactory.getTableCollection( xTextDoc ).getCount() == 0 ) {
try {
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java b/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java
index a216e471b70b..191cc4c29828 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java
@@ -117,13 +117,7 @@ public class SwXTableCellText extends TestCase {
XTextTable oTable = null;
log.println( "Creating a test environment" );
- try {
- oTable = SOfficeFactory.createTextTable( xTextDoc );
- } catch ( com.sun.star.uno.Exception e ) {
- e.printStackTrace( log );
- throw new StatusException("Couldn't create TextTable : "
- +e.getMessage(),e);
- }
+ oTable = SOfficeFactory.createTextTable( xTextDoc );
try {
SOfficeFactory.insertTextContent(xTextDoc, oTable );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java
index bdb78ca07573..69a79797e2cb 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java
@@ -92,13 +92,7 @@ public class SwXTableColumns extends TestCase {
log.println( "creating a test environment" );
- try {
- oTable = SOfficeFactory.createTextTable( xTextDoc );
- } catch ( com.sun.star.uno.Exception e ) {
- e.printStackTrace( log );
- throw new StatusException("Couldn't create TextTable: "
- +e.getMessage(),e);
- }
+ oTable = SOfficeFactory.createTextTable( xTextDoc );
try {
SOfficeFactory.insertTextContent(xTextDoc, oTable );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java
index 3996058a453c..88b935ced48f 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java
@@ -87,13 +87,7 @@ public class SwXTableRows extends TestCase {
log.println( "creating a test environment" );
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
- try {
- oTable = SOfficeFactory.createTextTable( xTextDoc );
- } catch ( com.sun.star.uno.Exception e ) {
- e.printStackTrace( log );
- throw new StatusException("Couldn't create TextTable: "
- +e.getMessage(),e);
- }
+ oTable = SOfficeFactory.createTextTable( xTextDoc );
try {
SOfficeFactory.insertTextContent(xTextDoc, oTable );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
index 0f0e9b03f03e..ef0546a441b2 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
@@ -84,14 +84,8 @@ public class SwXTextTable extends TestCase {
TestEnvironment tEnv = null;
Object instance = null;
- try {
- oObj = SOfficeFactory.createTextTable(xTextDoc);
- instance = SOfficeFactory.createTextTable(xTextDoc);
- } catch (com.sun.star.uno.Exception uE) {
- uE.printStackTrace(log);
- throw new StatusException("Couldn't create testobj : " +
- uE.getMessage(), uE);
- }
+ oObj = SOfficeFactory.createTextTable(xTextDoc);
+ instance = SOfficeFactory.createTextTable(xTextDoc);
int nRow = 6;
int nCol = 2;
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java
index 5339829ab4c8..68bb47a3f041 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java
@@ -86,15 +86,8 @@ public class SwXTextTableCursor extends TestCase {
// create testobject here
XTextTable oTable = null;
- try {
- oTable = SOfficeFactory.createTextTable( xTextDoc );
- SOfficeFactory.insertTextContent(xTextDoc, oTable );
- }
- catch( com.sun.star.uno.Exception uE ) {
- uE.printStackTrace( log );
- throw new StatusException("Couldn't create TextTable : "
- + uE.getMessage(), uE);
- }
+ oTable = SOfficeFactory.createTextTable( xTextDoc );
+ SOfficeFactory.insertTextContent(xTextDoc, oTable );
oObj = oTable.createCursorByCellName("A1");
diff --git a/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java b/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java
index d3c36af6461d..48177154468d 100644
--- a/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java
+++ b/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java
@@ -309,10 +309,7 @@ public class SDBCReportDataFactory implements DataSourceFactory
private void fillParameter(final Map parameters,
final XRowSet rowSet, final ParameterDefinition paramDef)
throws SQLException,
- UnknownPropertyException,
- PropertyVetoException,
- IllegalArgumentException,
- WrappedTargetException
+ IllegalArgumentException
{
final ArrayList<?> masterValues = (ArrayList<?>) parameters.get(MASTER_VALUES);
if (masterValues != null && !masterValues.isEmpty())
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
index 41b8458e0c22..3dccfb4249bf 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
@@ -792,7 +792,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
protected void startReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
if (allowBuffering(role))
{
@@ -804,7 +804,6 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
throws IOException, DataSourceException, ReportProcessingException;
protected void startGroup(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
final Object repeatingHeaderOrFooter = attrs.getAttribute(JFreeReportInfo.REPORT_NAMESPACE, "repeating-header-or-footer");
if (OfficeToken.TRUE.equals(repeatingHeaderOrFooter))
@@ -821,12 +820,10 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
protected void startGroupInstance(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
}
protected void startGroupBody(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
}
@@ -993,12 +990,11 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
protected void endGroupBody(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException
{
}
protected void endGroupInstance(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
}
@@ -1012,7 +1008,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
protected void endReportSection(final AttributeMap attrs,
final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException, ReportProcessingException
{
if (allowBuffering(role))
{
@@ -1021,7 +1017,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
protected void endGroup(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
}
@@ -1029,7 +1025,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
throws IOException, DataSourceException, ReportProcessingException;
protected void endBody(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException
{
getXmlWriter().writeCloseTag();
}
@@ -1167,7 +1163,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
}
}
- public BufferState finishBuffering() throws ReportProcessingException
+ public BufferState finishBuffering()
{
final BufferState state = (BufferState) xmlWriters.pop();
try
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java
index 64257d50d160..8aee4f024a9c 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/StylesWriter.java
@@ -40,7 +40,6 @@ import org.jfree.layouting.namespace.Namespaces;
import org.jfree.layouting.util.AttributeMap;
import org.jfree.report.JFreeReportBoot;
import org.jfree.report.JFreeReportInfo;
-import org.jfree.report.ReportProcessingException;
import org.jfree.report.structure.Element;
import org.jfree.report.structure.Node;
import org.jfree.report.structure.Section;
@@ -82,7 +81,7 @@ public class StylesWriter
public void writeContentStyles(final OfficeStylesCollection predefined,
final OfficeStylesCollection globals)
- throws IOException, ReportProcessingException
+ throws IOException
{
writeFontFaces(new OfficeStylesCollection[]
{
@@ -96,7 +95,7 @@ public class StylesWriter
public void writeGlobalStyles(final OfficeStylesCollection predefined,
final OfficeStylesCollection globals)
- throws IOException, ReportProcessingException
+ throws IOException
{
if (writeOpeningTag)
{
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
index d17641550e57..2658942fe33c 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
@@ -99,12 +99,11 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
}
protected void startReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
}
protected void endReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
{
}
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java
index 09dcb4cbb5dc..dbe1f4ce1abb 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java
@@ -264,7 +264,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
- protected void startReportSection(final AttributeMap attrs, final int role) throws IOException, DataSourceException, ReportProcessingException
+ protected void startReportSection(final AttributeMap attrs, final int role) throws ReportProcessingException
{
if ((role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER) && (!PageSection.isPrintWithReportHeader(attrs) || !PageSection.isPrintWithReportFooter(attrs)))
{
@@ -276,7 +276,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
- protected void endReportSection(final AttributeMap attrs, final int role) throws IOException, DataSourceException, ReportProcessingException
+ protected void endReportSection(final AttributeMap attrs, final int role) throws IOException, ReportProcessingException
{
if ((role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER) && (!PageSection.isPrintWithReportHeader(attrs) || !PageSection.isPrintWithReportFooter(attrs)))
{
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
index b24b2cf58e6f..486b62d2eee3 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
@@ -1050,7 +1050,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void startReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
sectionHeight = new LengthCalculator();
if (role == OfficeDocumentReportTarget.ROLE_TEMPLATE || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER)
@@ -1099,7 +1099,6 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void startGroup(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
super.startGroup(attrs);
final PageContext pageContext = new PageContext(getCurrentContext());
@@ -1136,7 +1135,6 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void startGroupInstance(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
{
if (getGroupContext().isGroupWithRepeatingSection())
{
@@ -1145,7 +1143,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void endGroup(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws ReportProcessingException
{
if (getGroupContext().isGroupWithRepeatingSection())
{
@@ -1177,7 +1175,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void endReportSection(final AttributeMap attrs, final int role)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException, ReportProcessingException
{
if (role == ROLE_TEMPLATE || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER)
{
@@ -1386,7 +1384,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
protected void endGroupBody(final AttributeMap attrs)
- throws IOException, DataSourceException, ReportProcessingException
+ throws IOException
{
if (tableLayoutConfig == TABLE_LAYOUT_SINGLE_DETAIL_TABLE && detailBandProcessingState == DETAIL_SECTION_OTHER_PRINTED)
{
diff --git a/scripting/java/com/sun/star/script/framework/container/Parcel.java b/scripting/java/com/sun/star/script/framework/container/Parcel.java
index 6e3ba9fb4ce2..e6997763d662 100644
--- a/scripting/java/com/sun/star/script/framework/container/Parcel.java
+++ b/scripting/java/com/sun/star/script/framework/container/Parcel.java
@@ -277,10 +277,11 @@ public class Parcel implements XNameContainer
}
// rename parcel
- public void rename( String name ) throws com.sun.star.lang.WrappedTargetException
+ public void rename( String name )
{
this.name = name;
}
+
public ParcelContainer getParent() { return parent; }
/**
* Returns the path of this <tt>Parcel</tt>
diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
index c4bf49e3c4e9..98c54a6ff5f6 100644
--- a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
+++ b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
@@ -235,7 +235,7 @@ public class ScriptMetaData extends ScriptEntry {
return "\nParcelLocation = " + getParcelLocation() + "\nLocationPlaceHolder = " + locationPlaceHolder + super.toString();
}
- public URL[] getClassPath() throws java.net.MalformedURLException
+ public URL[] getClassPath()
{
try
{
diff --git a/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java b/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java
index 3b1cd1db7aa1..fb470a25fe15 100644
--- a/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java
+++ b/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java
@@ -137,7 +137,7 @@ public class UnoPkgContainer extends ParcelContainer
LogUtils.DEBUG("Leaving deRegisterPackageContainer for " + url );
}
- private void init() throws com.sun.star.lang.IllegalArgumentException, com.sun.star.lang.WrappedTargetException
+ private void init() throws com.sun.star.lang.IllegalArgumentException
{
LogUtils.DEBUG("getting container for " + containerUrl );
DeployedUnoPackagesDB db = null;
diff --git a/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java b/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java
index 4086a3c29741..8ec9b0a08fe8 100644
--- a/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java
+++ b/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java
@@ -31,7 +31,6 @@ public class ClassLoaderFactory
private ClassLoaderFactory() {}
public static ClassLoader getURLClassLoader( ScriptMetaData scriptData )
- throws NoSuitableClassLoaderException, MalformedURLException
{
ClassLoader parent = scriptData.getClass().getClassLoader();
URL[] classPath = scriptData.getClassPath();
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
index d19a772d2d7f..cf4bcf114cf3 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
@@ -198,14 +198,6 @@ class ScriptImpl implements XScript
metaData.getLanguageName(), metaData.getLanguage(),
ScriptFrameworkErrorType.MALFORMED_URL );
}
- catch ( NoSuitableClassLoaderException nsc )
- {
- // Framework error
- throw new ScriptFrameworkErrorException(
- nsc.getMessage(), null,
- metaData.getLanguageName(), metaData.getLanguage(),
- ScriptFrameworkErrorType.UNKNOWN );
- }
// Set class loader to be used for class files
// and jar files
Thread.currentThread().setContextClassLoader(cl);
diff --git a/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java b/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java
index 090f1626e0d7..07bde156c7b8 100644
--- a/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java
+++ b/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java
@@ -30,8 +30,6 @@ import com.sun.star.uno.Any;
import java.util.ArrayList;
import java.util.Map;
-import java.net.MalformedURLException;
-
import com.sun.star.script.provider.XScriptContext;
import com.sun.star.script.provider.XScript;
import com.sun.star.script.provider.ScriptExceptionRaisedException;
@@ -194,28 +192,6 @@ class ScriptImpl implements XScript
metaData );
LogUtils.DEBUG( "Classloader finished..." );
}
- catch (MalformedURLException mfe )
- {
- // Framework error
- ScriptFrameworkErrorException e2 =
- new ScriptFrameworkErrorException(
- mfe.toString(), null,
- metaData.getLanguageName(), metaData.getLanguage(),
- ScriptFrameworkErrorType.MALFORMED_URL );
- e2.initCause( mfe );
- throw e2;
- }
- catch (NoSuitableClassLoaderException ncl )
- {
- // Framework error
- ScriptFrameworkErrorException e2 =
- new ScriptFrameworkErrorException(
- ncl.toString(), null,
- metaData.getLanguageName(), metaData.getLanguage(),
- ScriptFrameworkErrorType.UNKNOWN );
- e2.initCause( ncl );
- throw e2;
- }
catch (ArrayStoreException e )
{
// Framework error
diff --git a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
index e62f41ebedfd..25b0da6fd550 100644
--- a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
+++ b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
@@ -196,14 +196,6 @@ class ScriptImpl implements XScript
metaData.getLanguageName(), metaData.getLanguage(),
ScriptFrameworkErrorType.MALFORMED_URL );
}
- catch ( com.sun.star.script.framework.provider.NoSuitableClassLoaderException nsc )
- {
- // Framework error
- throw new ScriptFrameworkErrorException(
- nsc.getMessage(), null,
- metaData.getLanguageName(), metaData.getLanguage(),
- ScriptFrameworkErrorType.UNKNOWN );
- }
Context ctxt = null;
try
diff --git a/scripting/workben/installer/IdeVersion.java b/scripting/workben/installer/IdeVersion.java
index 20aa5501ebc7..1b9cf5142f33 100644
--- a/scripting/workben/installer/IdeVersion.java
+++ b/scripting/workben/installer/IdeVersion.java
@@ -20,7 +20,6 @@ package installer;
import java.awt.*;
import java.awt.event.*;
-import java.io.*;
import java.util.*;
import javax.swing.*;
@@ -69,9 +68,6 @@ public class IdeVersion extends javax.swing.JPanel implements ActionListener, Ta
}
}
props = ideProps;
- }
- catch (IOException eIO) {
- System.err.println("Failed to parse .netbeans/ide.log");
}
catch (Exception e) {
System.err.println("Exception thrown in initComponents");
diff --git a/scripting/workben/installer/InstUtil.java b/scripting/workben/installer/InstUtil.java
index b6d0f64f4338..154104175100 100644
--- a/scripting/workben/installer/InstUtil.java
+++ b/scripting/workben/installer/InstUtil.java
@@ -65,19 +65,10 @@ public class InstUtil {
public static boolean hasNetbeansInstallation() {
boolean result = false;
- try
- {
- result = checkForSupportedVersion( getNetbeansLocation(), versions );
+ result = checkForSupportedVersion( getNetbeansLocation(), versions );
- if (result == false)
- System.out.println("No supported version of NetBeans found.");
- }
- catch ( IOException ioe )
- {
- System.err.println("Exception caught trying to determine netbeans installation: " + ioe );
- ioe.printStackTrace();
- result = false;
- }
+ if (result == false)
+ System.out.println("No supported version of NetBeans found.");
return result;
}
@@ -102,26 +93,17 @@ public class InstUtil {
public static boolean hasJeditInstallation() {
boolean result = false;
- try
- {
- result = checkForSupportedVersion( getJeditLocation(), versions );
- if ( !result )
- {
- System.out.println("No supported version for JEdit found.");
- }
- }
- catch ( IOException ioe )
+ result = checkForSupportedVersion( getJeditLocation(), versions );
+ if ( !result )
{
- System.err.println("Exception caught trying to determine jedit installation: " + ioe );
- ioe.printStackTrace();
- result = false;
+ System.out.println("No supported version for JEdit found.");
}
return result;
}
- public static Properties getNetbeansLocation() throws IOException {
+ public static Properties getNetbeansLocation() {
Properties results = new Properties();
StringBuffer str = new StringBuffer();
@@ -168,7 +150,7 @@ public class InstUtil {
- public static Properties getJeditLocation() throws IOException {
+ public static Properties getJeditLocation() {
Properties results = new Properties();
diff --git a/sw/qa/complex/writer/CheckBookmarks.java b/sw/qa/complex/writer/CheckBookmarks.java
index a6dab9cdeb89..e53dffc28cc7 100644
--- a/sw/qa/complex/writer/CheckBookmarks.java
+++ b/sw/qa/complex/writer/CheckBookmarks.java
@@ -101,9 +101,6 @@ public class CheckBookmarks {
}
@Test public void checkBookmarks()
- throws com.sun.star.uno.Exception,
- com.sun.star.io.IOException,
- java.security.NoSuchAlgorithmException
{
actualHashes.assertExpectation(get20111110Expectations());
}
@@ -170,7 +167,6 @@ public class CheckBookmarks {
}
private void insertRandomParts(long seed)
- throws com.sun.star.uno.Exception
{
java.util.Random rnd = new java.util.Random(seed);
XTextCursor xCrsr = m_xDoc.getText().createTextCursor();
@@ -181,7 +177,6 @@ public class CheckBookmarks {
}
private void deleteRandomParts(long seed)
- throws com.sun.star.uno.Exception
{
java.util.Random rnd = new java.util.Random(seed);
XTextCursor xCrsr = m_xDoc.getText().createTextCursor();
@@ -193,7 +188,6 @@ public class CheckBookmarks {
}
private void insertLinebreaks(long seed)
- throws com.sun.star.uno.Exception
{
XText xText = m_xDoc.getText();
java.util.Random rnd = new java.util.Random(seed);
diff --git a/sw/qa/complex/writer/CheckCrossReferences.java b/sw/qa/complex/writer/CheckCrossReferences.java
index c12f81a74e91..8e842d52f660 100644
--- a/sw/qa/complex/writer/CheckCrossReferences.java
+++ b/sw/qa/complex/writer/CheckCrossReferences.java
@@ -284,7 +284,7 @@ public class CheckCrossReferences {
}
}
- @Before public void setUpDocument() throws com.sun.star.uno.Exception {
+ @Before public void setUpDocument() {
document = util.WriterTools.loadTextDoc(
UnoRuntime.queryInterface(
XMultiServiceFactory.class,
diff --git a/sw/qa/complex/writer/CheckFlies.java b/sw/qa/complex/writer/CheckFlies.java
index e057430de9b2..6682696317bf 100644
--- a/sw/qa/complex/writer/CheckFlies.java
+++ b/sw/qa/complex/writer/CheckFlies.java
@@ -179,7 +179,7 @@ public class CheckFlies {
}
}
- @Before public void setUpDocument() throws com.sun.star.uno.Exception {
+ @Before public void setUpDocument() {
document = util.WriterTools.loadTextDoc(
UnoRuntime.queryInterface(
XMultiServiceFactory.class,
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
index 66d2aa263d8c..20491b972790 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
@@ -779,7 +779,7 @@ public class Helper
}
static protected HostConfiguration Login( URI aMainURL, String sWikiUser, String sWikiPass, XComponentContext xContext )
- throws com.sun.star.uno.Exception, java.io.IOException, WikiCancelException
+ throws java.io.IOException, WikiCancelException
{
HostConfiguration aHostConfig = null;
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java b/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java
index 4b92ff6e2991..fe31b4741ebd 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java
@@ -52,7 +52,7 @@ public class WikiArticle
/** Creates a new instance of WikiArticle */
public WikiArticle( XComponentContext xContext, String sTitle, Map<String,String> wikiSettings, boolean bLogin, WikiPropDialog aPropDialog )
- throws java.net.MalformedURLException, com.sun.star.uno.Exception, java.io.IOException, WikiCancelException
+ throws java.net.MalformedURLException, java.io.IOException, WikiCancelException
{
m_xContext = xContext;
@@ -117,7 +117,7 @@ public class WikiArticle
}
private String getArticleWiki()
- throws com.sun.star.uno.Exception, java.io.IOException, WikiCancelException
+ throws java.io.IOException, WikiCancelException
{
String sWikiCode = null;
@@ -161,7 +161,7 @@ public class WikiArticle
}
private void InitArticleHTML()
- throws com.sun.star.uno.Exception, java.io.IOException, WikiCancelException
+ throws java.io.IOException, WikiCancelException
{
if ( m_aHostConfig != null )
{
@@ -197,7 +197,7 @@ public class WikiArticle
}
protected boolean setArticle( String sWikiCode, String sWikiComment, boolean bMinorEdit )
- throws com.sun.star.uno.Exception, java.io.IOException, WikiCancelException
+ throws java.io.IOException, WikiCancelException
{
boolean bResult = false;
@@ -238,7 +238,7 @@ public class WikiArticle
}
protected boolean Login()
- throws com.sun.star.uno.Exception, java.io.IOException, WikiCancelException
+ throws java.io.IOException, WikiCancelException
{
m_aHostConfig = Helper.Login( m_aMainURI, m_sWikiUser, m_sWikiPass, m_xContext );
return ( m_aHostConfig != null );
diff --git a/toolkit/test/accessibility/AccessibleTextHandler.java b/toolkit/test/accessibility/AccessibleTextHandler.java
index 0c87d16eda38..ff424a9f8d76 100644
--- a/toolkit/test/accessibility/AccessibleTextHandler.java
+++ b/toolkit/test/accessibility/AccessibleTextHandler.java
@@ -476,7 +476,7 @@ class AccessibleTextHandler extends NodeHandler
/**
* Display a dialog with a text field and a pair of cancel/do-it buttons
*/
-class TextActionDialog extends JDialog
+abstract class TextActionDialog extends JDialog
implements ActionListener
{
AccTreeNode aNode;
@@ -588,11 +588,8 @@ class TextActionDialog extends JDialog
/** override this for dialog-specific action */
- boolean action( JTextComponent aText, AccTreeNode aNode )
- throws IndexOutOfBoundsException
- {
- return false;
- }
+ abstract boolean action( JTextComponent aText, AccTreeNode aNode )
+ throws IndexOutOfBoundsException;
}
diff --git a/unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java b/unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java
index 6b7c12324009..13a82db8ecfb 100644
--- a/unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java
+++ b/unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java
@@ -36,7 +36,7 @@ public class SpreadsheetDocument extends OfficeDocument
}
/* ------------------------------------------------------------------ */
- public SpreadsheetDocument( XMultiServiceFactory orb, XComponent document ) throws com.sun.star.uno.Exception
+ public SpreadsheetDocument( XMultiServiceFactory orb, XComponent document )
{
super( orb, document );
}
@@ -44,7 +44,7 @@ public class SpreadsheetDocument extends OfficeDocument
/* ------------------------------------------------------------------ */
/** returns the sheets collection
*/
- public XSpreadsheets getSheets() throws com.sun.star.uno.Exception
+ public XSpreadsheets getSheets()
{
XSpreadsheetDocument spreadsheetDoc = UnoRuntime.queryInterface( XSpreadsheetDocument.class, getDocument() );
return spreadsheetDoc.getSheets();
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java
index c559a3ad2b5b..57804e6e8056 100644
--- a/wizards/com/sun/star/wizards/common/FileAccess.java
+++ b/wizards/com/sun/star/wizards/common/FileAccess.java
@@ -201,7 +201,7 @@ public class FileAccess
return ResultPath;
}
- public static ArrayList<String> getOfficePaths(XMultiServiceFactory xMSF, String _sPath, String sType, String sSearchDir) throws NoValidPathException
+ public static ArrayList<String> getOfficePaths(XMultiServiceFactory xMSF, String _sPath, String sType, String sSearchDir)
{
//This method currently only works with sPath="Template"
@@ -317,7 +317,7 @@ public class FileAccess
return _sPath;
}
- public static void combinePaths(XMultiServiceFactory xMSF, ArrayList<String> _aFirstPath, String _sSecondPath) throws NoValidPathException
+ public static void combinePaths(XMultiServiceFactory xMSF, ArrayList<String> _aFirstPath, String _sSecondPath)
{
for (int i = 0; i < _aFirstPath.size(); ++i)
{
diff --git a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
index 46239f8380e8..49e1db3842cf 100644
--- a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
+++ b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
@@ -122,7 +122,7 @@ public class SQLQueryComposer
}
}
- public void appendFilterConditions() throws SQLException
+ public void appendFilterConditions()
{
try
{
diff --git a/wizards/com/sun/star/wizards/form/FormWizard.java b/wizards/com/sun/star/wizards/form/FormWizard.java
index 24d1bd4d5c5f..eda38213af72 100644
--- a/wizards/com/sun/star/wizards/form/FormWizard.java
+++ b/wizards/com/sun/star/wizards/form/FormWizard.java
@@ -24,7 +24,6 @@ import com.sun.star.sdb.application.DatabaseObject;
import com.sun.star.wizards.common.Helper;
import com.sun.star.wizards.common.PropertyNames;
import com.sun.star.wizards.common.JavaTools;
-import com.sun.star.wizards.common.NoValidPathException;
import com.sun.star.wizards.common.Properties;
import com.sun.star.wizards.db.DatabaseObjectWizard;
import com.sun.star.wizards.db.RelationController;
@@ -219,7 +218,7 @@ public class FormWizard extends DatabaseObjectWizard
}
}
- public void buildSteps() throws NoValidPathException
+ public void buildSteps()
{
curDBCommandFieldSelection = new CommandFieldSelection(this, curFormDocument.oMainFormDBMetaData, 92, slblFields, slblSelFields, slblTables, true, 34411);
curDBCommandFieldSelection.addFieldSelectionListener(new FieldSelectionListener());
diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java
index d1a4df1ed1b2..24e3e62f750f 100644
--- a/wizards/com/sun/star/wizards/form/StyleApplier.java
+++ b/wizards/com/sun/star/wizards/form/StyleApplier.java
@@ -64,7 +64,7 @@ public class StyleApplier
private final static int SOBORDERCOLOR = 5;
private Short IBorderValue = new Short((short) 1);
- public StyleApplier(WizardDialog _CurUnoDialog, FormDocument _curFormDocument) throws NoValidPathException
+ public StyleApplier(WizardDialog _CurUnoDialog, FormDocument _curFormDocument)
{
this.curFormDocument = _curFormDocument;
xMSF = curFormDocument.xMSF;
diff --git a/wizards/com/sun/star/wizards/form/UIControlArranger.java b/wizards/com/sun/star/wizards/form/UIControlArranger.java
index 2dba91f88410..ff92792e64cc 100644
--- a/wizards/com/sun/star/wizards/form/UIControlArranger.java
+++ b/wizards/com/sun/star/wizards/form/UIControlArranger.java
@@ -26,7 +26,6 @@ import com.sun.star.awt.XRadioButton;
import com.sun.star.lang.EventObject;
import com.sun.star.wizards.common.Helper;
import com.sun.star.wizards.common.PropertyNames;
-import com.sun.star.wizards.common.NoValidPathException;
import com.sun.star.wizards.document.Control;
import com.sun.star.wizards.ui.ButtonList;
import com.sun.star.wizards.ui.UIConsts;
@@ -51,7 +50,7 @@ public class UIControlArranger
private final int SOIMAGELISTHEIGHT = 60;
private final String SOALIGNMETHOD = "alignLabelControls";
- public UIControlArranger(FormWizard _CurUnoDialog, FormDocument _curFormDocument) throws NoValidPathException
+ public UIControlArranger(FormWizard _CurUnoDialog, FormDocument _curFormDocument)
{
this.CurUnoDialog = _CurUnoDialog;
this.curFormDocument = _curFormDocument;
diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java
index 095ff23d9c52..3be19016063b 100644
--- a/wizards/com/sun/star/wizards/report/DBColumn.java
+++ b/wizards/com/sun/star/wizards/report/DBColumn.java
@@ -68,23 +68,23 @@ public class DBColumn
RecordTable CurRecordTable;
TextTableHandler oTextTableHandler;
- public DBColumn(TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i) throws Exception
+ public DBColumn(TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i)
{
CurRecordTable = new RecordTable(_oTextTableHandler);
initializeRecordTableMembers(CurRecordTable, _oTextTableHandler, _CurDBMetaData, i, false);
}
- public DBColumn(RecordTable _CurRecordTable, TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i, boolean _bforce) throws Exception
+ public DBColumn(RecordTable _CurRecordTable, TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i, boolean _bforce)
{
initializeRecordTableMembers(_CurRecordTable, _oTextTableHandler, _CurDBMetaData, i, _bforce);
}
- public DBColumn(RecordTable _CurRecordTable, TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i) throws Exception
+ public DBColumn(RecordTable _CurRecordTable, TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i)
{
initializeRecordTableMembers(_CurRecordTable, _oTextTableHandler, _CurDBMetaData, i, false);
}
- private void initializeRecordTableMembers(RecordTable _CurRecordTable, TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i, boolean _bForce) throws Exception
+ private void initializeRecordTableMembers(RecordTable _CurRecordTable, TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i, boolean _bForce)
{
this.oTextTableHandler = _oTextTableHandler;
this.CurDBMetaData = _CurDBMetaData;
@@ -137,8 +137,7 @@ public class DBColumn
return false;
}
- public DBColumn(TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, String _FieldName, int GroupIndex, String TableName, DBColumn OldDBColumn) throws Exception
- {
+ public DBColumn(TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, String _FieldName, int GroupIndex, String TableName, DBColumn OldDBColumn) {
this.oTextTableHandler = _oTextTableHandler;
this.CurDBMetaData = _CurDBMetaData;
CurDBField = CurDBMetaData.getFieldColumnByDisplayName(_FieldName);
diff --git a/wizards/com/sun/star/wizards/report/ReportTextDocument.java b/wizards/com/sun/star/wizards/report/ReportTextDocument.java
index cd6af8c937f8..ed6a9bcfe319 100644
--- a/wizards/com/sun/star/wizards/report/ReportTextDocument.java
+++ b/wizards/com/sun/star/wizards/report/ReportTextDocument.java
@@ -346,7 +346,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
}
}
- public void updateTextSections(String[] SelGroupNames) throws Exception
+ public void updateTextSections(String[] SelGroupNames)
{
String TableName;
DBColumn OldDBColumn;
@@ -395,48 +395,41 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
public void insertColumnstoRecordTable()
{
- try
+ int GroupCount = CurDBMetaData.GroupFieldNames.length;
+ DBColumn CurDBColumn;
+ // Note for some reason the table might lose its name and has to be renamed therefor
+ String OldTableName = CurRecordTable.xTableName.getName();
+ if (OldTableName.compareTo(TBLRECORDSECTION) != 0)
{
- int GroupCount = CurDBMetaData.GroupFieldNames.length;
- DBColumn CurDBColumn;
- // Note for some reason the table might lose its name and has to be renamed therefor
- String OldTableName = CurRecordTable.xTableName.getName();
- if (OldTableName.compareTo(TBLRECORDSECTION) != 0)
- {
- CurRecordTable = new RecordTable(oTextTableHandler);
- }
- com.sun.star.table.XTableColumns xColumns = CurRecordTable.xTextTable.getColumns();
- int ColCount = xColumns.getCount();
- int RecordCount = CurDBMetaData.getRecordFieldNames().length;
- if (ColCount > RecordCount)
- {
- int RemoveCount = ColCount - RecordCount;
- xColumns.removeByIndex(0, RemoveCount);
- }
- else if (ColCount < RecordCount)
+ CurRecordTable = new RecordTable(oTextTableHandler);
+ }
+ com.sun.star.table.XTableColumns xColumns = CurRecordTable.xTextTable.getColumns();
+ int ColCount = xColumns.getCount();
+ int RecordCount = CurDBMetaData.getRecordFieldNames().length;
+ if (ColCount > RecordCount)
+ {
+ int RemoveCount = ColCount - RecordCount;
+ xColumns.removeByIndex(0, RemoveCount);
+ }
+ else if (ColCount < RecordCount)
+ {
+ int AddCount = RecordCount - ColCount;
+ CurRecordTable.xTextTable.getColumns().insertByIndex(ColCount, AddCount);
+ }
+ for (int i = 0; i < RecordCount; i++)
+ {
+ CurDBColumn = new DBColumn(CurRecordTable, oTextTableHandler, CurDBMetaData, i, true);
+ CurDBColumn.initializeNumberFormat();
+ CurDBColumn.insertColumnData(oTextFieldHandler, this.bIsCurLandscape);
+ if (DBColumnsVector.size() <= (i + GroupCount))
{
- int AddCount = RecordCount - ColCount;
- CurRecordTable.xTextTable.getColumns().insertByIndex(ColCount, AddCount);
+ DBColumnsVector.add(CurDBColumn);
}
- for (int i = 0; i < RecordCount; i++)
+ else
{
- CurDBColumn = new DBColumn(CurRecordTable, oTextTableHandler, CurDBMetaData, i, true);
- CurDBColumn.initializeNumberFormat();
- CurDBColumn.insertColumnData(oTextFieldHandler, this.bIsCurLandscape);
- if (DBColumnsVector.size() <= (i + GroupCount))
- {
- DBColumnsVector.add(CurDBColumn);
- }
- else
- {
- DBColumnsVector.set(i + GroupCount, CurDBColumn);
- }
+ DBColumnsVector.set(i + GroupCount, CurDBColumn);
}
}
- catch (Exception exception)
- {
- showCommonReportErrorBox(exception);
- }
}
public boolean addGroupNametoDocument(String[] GroupNames, String CurGroupTitle, ArrayList<String> GroupFieldVector, ArrayList<String> ReportPath, int iSelCount)
@@ -473,23 +466,16 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
removeGroupNamesofRecordTable(NewSelGroupNames.length + 1);
FieldColumn CurFieldColumn = CurDBMetaData.getFieldColumnByTitle(CurGroupTitle);
GroupFieldVector.remove(CurFieldColumn.getFieldName());
- try
+ oTextSectionHandler.removeLastTextSection();
+ oTextTableHandler.removeLastTextTable();
+ // if the previously selected item is somewhere in the middle of the listbox (and not at the end) the
+ // Textsections have to be updated
+ if (JavaTools.FieldInList(NewSelGroupNames, CurGroupTitle) == -1)
{
- oTextSectionHandler.removeLastTextSection();
- oTextTableHandler.removeLastTextTable();
- // if the previously selected item is somewhere in the middle of the listbox (and not at the end) the
- // Textsections have to be updated
- if (JavaTools.FieldInList(NewSelGroupNames, CurGroupTitle) == -1)
- {
- updateTextSections(NewSelGroupNames);
- }
- int iSelItemCount = NewSelGroupNames.length;
- DBColumnsVector.remove(iSelItemCount);
- }
- catch (Exception exception)
- {
- showCommonReportErrorBox(exception);
+ updateTextSections(NewSelGroupNames);
}
+ int iSelItemCount = NewSelGroupNames.length;
+ DBColumnsVector.remove(iSelItemCount);
}
public void removeGroupNamesofRecordTable(int GroupFieldCount)
diff --git a/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java b/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java
index d6c572398c73..191df4436cab 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java
@@ -37,7 +37,6 @@ import com.sun.star.ucb.XCommandProcessor;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.util.XModifiable;
import com.sun.star.util.XURLTransformer;
-import com.sun.star.wizards.common.NoValidPathException;
import com.sun.star.wizards.common.Resource;
import com.sun.star.wizards.db.FieldColumn;
import java.lang.reflect.Constructor;
@@ -504,16 +503,9 @@ public class ReportBuilderImplementation extends ReportImplementationHelper
{
if (m_aReportPath == null)
{
- try
- {
- // Check general availability of office paths
- m_aReportPath = FileAccess.getOfficePaths(getMSF(), "Template", "share", "/wizard");
- FileAccess.combinePaths(getMSF(), m_aReportPath, "/wizard/report");
- }
- catch (NoValidPathException ex)
- {
- Logger.getLogger(ReportBuilderImplementation.class.getName()).log(Level.SEVERE, null, ex);
- }
+ // Check general availability of office paths
+ m_aReportPath = FileAccess.getOfficePaths(getMSF(), "Template", "share", "/wizard");
+ FileAccess.combinePaths(getMSF(), m_aReportPath, "/wizard/report");
}
return m_aReportPath;
}
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.java b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
index 0ecc84da19ec..66c818efc3ef 100644
--- a/wizards/com/sun/star/wizards/text/TextFieldHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
@@ -123,7 +123,7 @@ public class TextFieldHandler
return xPSet;
}
- private XDependentTextField[] getTextFieldsByProperty(String _PropertyName, Object _aPropertyValue, String _TypeName) throws Exception
+ private XDependentTextField[] getTextFieldsByProperty(String _PropertyName, Object _aPropertyValue, String _TypeName)
{
try
{
@@ -285,21 +285,14 @@ public class TextFieldHandler
public void removeUserFieldByContent(String _FieldContent)
{
- try
+ XDependentTextField[] xDependentTextFields = getTextFieldsByProperty("Content", _FieldContent, "String");
+ if (xDependentTextFields != null)
{
- XDependentTextField[] xDependentTextFields = getTextFieldsByProperty("Content", _FieldContent, "String");
- if (xDependentTextFields != null)
+ for (int i = 0; i < xDependentTextFields.length; i++)
{
- for (int i = 0; i < xDependentTextFields.length; i++)
- {
- xDependentTextFields[i].dispose();
- }
+ xDependentTextFields[i].dispose();
}
}
- catch (Exception e)
- {
- e.printStackTrace(System.err);
- }
}
public void changeExtendedUserFieldContent(short UserDataPart, String _FieldContent)
diff --git a/wizards/com/sun/star/wizards/ui/DocumentPreview.java b/wizards/com/sun/star/wizards/ui/DocumentPreview.java
index 2421245db16d..56dbc3d06777 100644
--- a/wizards/com/sun/star/wizards/ui/DocumentPreview.java
+++ b/wizards/com/sun/star/wizards/ui/DocumentPreview.java
@@ -64,7 +64,7 @@ public class DocumentPreview
createPreviewFrame(xmsf, xControl);
}
- protected XComponent setDocument(String url_, String[] propNames, Object[] propValues) throws com.sun.star.lang.IllegalArgumentException, IOException, CloseVetoException
+ protected XComponent setDocument(String url_, String[] propNames, Object[] propValues) throws com.sun.star.lang.IllegalArgumentException, IOException
{
url = url_;
@@ -77,7 +77,7 @@ public class DocumentPreview
return setDocument(url, ps.getProperties());
}
- protected XComponent setDocument(String url, PropertyValue[] lArgs) throws com.sun.star.lang.IllegalArgumentException, IOException, CloseVetoException
+ protected XComponent setDocument(String url, PropertyValue[] lArgs) throws com.sun.star.lang.IllegalArgumentException, IOException
{
loadArgs = lArgs;
XComponentLoader xCompLoader = UnoRuntime.queryInterface(XComponentLoader.class, xFrame);
@@ -100,7 +100,7 @@ public class DocumentPreview
}
}
- public XComponent setDocument(String url, int mode) throws com.sun.star.lang.IllegalArgumentException, IOException, CloseVetoException
+ public XComponent setDocument(String url, int mode) throws com.sun.star.lang.IllegalArgumentException, IOException
{
switch (mode)
{
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.java b/wizards/com/sun/star/wizards/ui/UnoDialog.java
index fed0a32424de..45482fce304e 100644
--- a/wizards/com/sun/star/wizards/ui/UnoDialog.java
+++ b/wizards/com/sun/star/wizards/ui/UnoDialog.java
@@ -458,42 +458,26 @@ public class UnoDialog implements EventNames
public XRadioButton insertRadioButton(String sName, int iControlKey, XItemListener xItemListener, String[] sProperties, Object[] sValues)
{
- try
- {
- XRadioButton xRadioButton = insertRadioButton(sName, iControlKey, sProperties, sValues);
- if (xItemListener != null)
- {
- xRadioButton.addItemListener(xItemListener);
- }
- return xRadioButton;
- }
- catch (com.sun.star.uno.Exception exception)
+ XRadioButton xRadioButton = insertRadioButton(sName, iControlKey, sProperties, sValues);
+ if (xItemListener != null)
{
- exception.printStackTrace(System.err);
- return null;
+ xRadioButton.addItemListener(xItemListener);
}
+ return xRadioButton;
}
public XButton insertRadioButton(String sName, int iControlKey, XActionListener xActionListener, String[] sProperties, Object[] sValues)
{
- try
- {
- XRadioButton xRadioButton = insertRadioButton(sName, iControlKey, sProperties, sValues);
- XButton xButton = UnoRuntime.queryInterface(XButton.class, xRadioButton);
- if (xActionListener != null)
- {
- xButton.addActionListener(xActionListener);
- }
- return xButton;
- }
- catch (com.sun.star.uno.Exception exception)
+ XRadioButton xRadioButton = insertRadioButton(sName, iControlKey, sProperties, sValues);
+ XButton xButton = UnoRuntime.queryInterface(XButton.class, xRadioButton);
+ if (xActionListener != null)
{
- exception.printStackTrace(System.err);
- return null;
+ xButton.addActionListener(xActionListener);
}
+ return xButton;
}
- public XRadioButton insertRadioButton(String sName, int iControlKey, String[] sProperties, Object[] sValues) throws com.sun.star.uno.Exception
+ public XRadioButton insertRadioButton(String sName, int iControlKey, String[] sProperties, Object[] sValues)
{
XRadioButton xRadioButton = insertRadioButton(sName, sProperties, sValues);
Integer ControlKey = new Integer(iControlKey);
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java
index 4c577349b655..2d3bf4551607 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java
@@ -20,7 +20,6 @@ package org.openoffice.xmerge.converter.xml.xslt;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
-import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Iterator;
@@ -28,7 +27,6 @@ import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.URIResolver;
@@ -138,18 +136,14 @@ public final class DocumentDeserializerImpl
return null;
}
- /*
+ /**
* This method performs the xslt transformation on the supplied Dom Tree.
*
* Xslt transformation code
*
- * @throws TransformerException,TransformerConfigurationException
- * , FileNotFoundException,IOException
- *
*/
private ByteArrayOutputStream transform(org.w3c.dom.Document xmlDoc)
- throws TransformerException,TransformerConfigurationException
- , FileNotFoundException,IOException{
+ {
log("\nTransforming...");
ConverterInfo ci = pluginFactory.getConverterInfo();
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java
index 6ac37f5a9141..b010c1a6f668 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentSerializerImpl.java
@@ -42,16 +42,12 @@ import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.URIResolver;
import javax.xml.transform.Source;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-// Imported java classes
-import java.io.FileNotFoundException;
-
/**
* <p>Xslt implementation of
* org.openoffice.xmerge.DocumentSerializer
@@ -227,7 +223,7 @@ public final class DocumentSerializerImpl
}
- /*
+ /**
* This method performs the sxl transformation on the supplied <code>
* Document</code> and returns a <code>DOMResult</code> object.
*
@@ -235,15 +231,9 @@ public final class DocumentSerializerImpl
*
* @return baos A <code>ByteArrayOutputStream</code> object containing
* the result of the Xslt transformation.
- * @throws TransformerException,TransformerConfigurationException
- * , FileNotFoundException,IOException
- *
*/
-
-
private ByteArrayOutputStream transform(org.w3c.dom.Document domDoc)
- throws TransformerException,TransformerConfigurationException
- , FileNotFoundException,IOException{
+ {
ConverterInfo ci = pluginFactory.getConverterInfo();
ByteArrayOutputStream baos= new ByteArrayOutputStream();
try{