From f493555623fb36bb51e78a4630483271ed36afe7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Aug 2014 13:16:37 +0200 Subject: 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 --- qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java') diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java index 86523b727f1c..e143b3e3501c 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java @@ -77,7 +77,7 @@ public class AccessibleTreeListBox extends TestCase { */ protected void initialize(TestParameters Param, PrintWriter log) { the_Desk = UnoRuntime.queryInterface( - XDesktop.class, DesktopTools.createDesktop((XMultiServiceFactory)Param.getMSF())); + XDesktop.class, DesktopTools.createDesktop(Param.getMSF())); } /** @@ -125,7 +125,7 @@ public class AccessibleTreeListBox extends TestCase { if (xTextDoc != null) xTextDoc.dispose(); // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF()); + SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); try { log.println( "creating a text document" ); -- cgit