summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/lib
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/runner/lib
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/runner/lib')
-rw-r--r--qadevOOo/runner/lib/TestParameters.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/qadevOOo/runner/lib/TestParameters.java b/qadevOOo/runner/lib/TestParameters.java
index 66050ee6ea8e..9fe80bf7d921 100644
--- a/qadevOOo/runner/lib/TestParameters.java
+++ b/qadevOOo/runner/lib/TestParameters.java
@@ -19,8 +19,11 @@
package lib;
import java.util.HashMap;
+
import util.PropertyName;
+
import com.sun.star.beans.XPropertySet;
+import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.XComponentContext;
//import com.sun.star.lang.XMultiServiceFactory;
@@ -279,10 +282,10 @@ public class TestParameters extends HashMap<String,Object> {
/**
* @return a XMultiServiceFactory to be used by a test (tests).
*/
- public Object getMSF() {
+ public XMultiServiceFactory getMSF() {
Object ret = null;
ret = get("ServiceFactory");
- return ret;
+ return (XMultiServiceFactory) ret;
}
public XComponentContext getComponentContext() {