diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 15:29:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:20 +0200 |
commit | 616b3ad50404f35d84708b3feeb8c66f2f23f1b1 (patch) | |
tree | fbff023a34b3cc62b2c5beb592b95e65ce28251b /qadevOOo/runner/util | |
parent | b6a83e99c8f4442c3c96198ac816dcb99419a67e (diff) |
java: remove exceptions from throws clauses that are not
.. actually thrown
Change-Id: Ia326ac7f82e11b948ed0f34e20908a96e7adcd10
Diffstat (limited to 'qadevOOo/runner/util')
-rw-r--r-- | qadevOOo/runner/util/SOfficeFactory.java | 14 |
1 files changed, 7 insertions, 7 deletions
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); |