diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-04 13:16:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-04 13:38:30 +0200 |
commit | f493555623fb36bb51e78a4630483271ed36afe7 (patch) | |
tree | ddd107373aafbcbdd3f31a1fd5f4e53e7c073f59 /qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java | |
parent | cebdd852165cd3080a4eee885dceadcc41173ef3 (diff) |
java: remove some casting in lib.TestParameters#getMSF
where the return value is always cast to XMultiServiceFactory,
so just do the cast in the method and avoid noise at the call sites.
Change-Id: I3a2e06ac6edb3c6021eda6442032db57aaa22e13
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java index aabae23a0dd7..2a0a16cb6a0e 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java @@ -94,7 +94,7 @@ public class AccessibleRadioButton extends TestCase { protected void initialize(TestParameters Param, PrintWriter log) { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( - (XMultiServiceFactory) Param.getMSF())); + Param.getMSF())); } /** @@ -155,7 +155,7 @@ public class AccessibleRadioButton extends TestCase { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( - (XMultiServiceFactory) tParam.getMSF()); + tParam.getMSF()); try { log.println("creating a text document"); @@ -180,7 +180,7 @@ public class AccessibleRadioButton extends TestCase { XURLTransformer urlTransf = null; try { - XInterface transf = (XInterface) ((XMultiServiceFactory) tParam.getMSF()).createInstance( + XInterface transf = (XInterface) tParam.getMSF().createInstance( "com.sun.star.util.URLTransformer"); urlTransf = UnoRuntime.queryInterface( XURLTransformer.class, transf); @@ -206,7 +206,7 @@ public class AccessibleRadioButton extends TestCase { XInterface oObj = null; try { - oObj = (XInterface) ((XMultiServiceFactory) tParam.getMSF()).createInstance( + oObj = (XInterface) tParam.getMSF().createInstance( "com.sun.star.awt.Toolkit"); } catch (com.sun.star.uno.Exception e) { log.println("Couldn't get toolkit"); |