diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-09 15:24:08 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-06-11 12:52:06 +0000 |
commit | 3bd57cc2c0cabf33799edc57d3dd1c90c7857ecd (patch) | |
tree | 353a2b569d3acb9efa06ee4edf0178dd04ede9f8 /qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java | |
parent | SdrCustomShapeEngine/DataItem are just SfxStringItem (diff) | |
download | core-3bd57cc2c0cabf33799edc57d3dd1c90c7857ecd.tar.gz core-3bd57cc2c0cabf33799edc57d3dd1c90c7857ecd.zip |
java:remove more unnecessary catch/re-throw
Change-Id: Id9a13c7f4ae0fd53c95c551544e60af44bb3fb95
Reviewed-on: https://gerrit.libreoffice.org/16203
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java index dde526e1254c..ec1cdb149ca4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,17 +45,10 @@ public class ScIndexEnumeration_SheetLinksEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - - try { - log.println( "creating a Spreadsheet document" ); - xSheetDoc = SOF.createCalcDoc(null); - } catch ( com.sun.star.uno.Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a Spreadsheet document" ); + xSheetDoc = SOF.createCalcDoc(null); } /** |