summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-04 13:16:37 +0200
committerNoel Grandin <noel@peralex.com>2014-08-04 13:38:30 +0200
commitf493555623fb36bb51e78a4630483271ed36afe7 (patch)
treeddd107373aafbcbdd3f31a1fd5f4e53e7c073f59 /qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java
parentcebdd852165cd3080a4eee885dceadcc41173ef3 (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/_sd/SdUnoOutlineView.java')
-rw-r--r--qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java
index ae72c1d9b2f3..f1e2deec14fe 100644
--- a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java
+++ b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java
@@ -84,7 +84,7 @@ public class SdUnoOutlineView extends TestCase {
protected void initialize(TestParameters Param, PrintWriter log) {
the_Desk = UnoRuntime.queryInterface(
XDesktop.class, DesktopTools.createDesktop(
- (XMultiServiceFactory)Param.getMSF()) );
+ Param.getMSF()) );
}
/**
@@ -130,7 +130,7 @@ public class SdUnoOutlineView extends TestCase {
log.println( "creating a test environment" );
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
try {
log.println( "creating a impress document" );
@@ -154,7 +154,7 @@ public class SdUnoOutlineView extends TestCase {
String aSlotID = "slot:27010";
XDispatchProvider xDispProv = UnoRuntime.queryInterface( XDispatchProvider.class, oObj );
XURLTransformer xParser = UnoRuntime.queryInterface(XURLTransformer.class,
- ((XMultiServiceFactory)Param.getMSF()).createInstance("com.sun.star.util.URLTransformer"));
+ Param.getMSF().createInstance("com.sun.star.util.URLTransformer"));
// Because it's an in/out parameter we must use an array of URL objects.
URL[] aParseURL = new URL[1];
aParseURL[0] = new URL();