From 3bd57cc2c0cabf33799edc57d3dd1c90c7857ecd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 9 Jun 2015 15:24:08 +0200 Subject: java:remove more unnecessary catch/re-throw Change-Id: Id9a13c7f4ae0fd53c95c551544e60af44bb3fb95 Reviewed-on: https://gerrit.libreoffice.org/16203 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- .../tests/java/mod/_xmloff/Impress/XMLContentExporter.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java') diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java index 8f82607eac99..eae3f905ec16 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,19 +68,13 @@ public class XMLContentExporter extends TestCase { * New text document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** -- cgit v1.2.3