summaryrefslogtreecommitdiff
path: root/extensions
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 /extensions
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 'extensions')
-rw-r--r--extensions/qa/integration/extensions/ObjectInspector.java2
-rw-r--r--extensions/qa/integration/extensions/TestSkeleton.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/qa/integration/extensions/ObjectInspector.java b/extensions/qa/integration/extensions/ObjectInspector.java
index 44f370e45562..4dac96782a46 100644
--- a/extensions/qa/integration/extensions/ObjectInspector.java
+++ b/extensions/qa/integration/extensions/ObjectInspector.java
@@ -58,7 +58,7 @@ public class ObjectInspector extends complexlib.ComplexTestCase
/* ------------------------------------------------------------------ */
public void before() throws com.sun.star.uno.Exception, java.lang.Exception
{
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
m_context = UnoRuntime.queryInterface( XComponentContext.class,
UnoRuntime.queryInterface( XPropertySet.class, m_orb ).getPropertyValue( "DefaultContext" ) );
m_desktop = new Frame( m_orb.createInstance( "com.sun.star.frame.Desktop" ) );
diff --git a/extensions/qa/integration/extensions/TestSkeleton.java b/extensions/qa/integration/extensions/TestSkeleton.java
index f196f8b3e658..64547c3b00b2 100644
--- a/extensions/qa/integration/extensions/TestSkeleton.java
+++ b/extensions/qa/integration/extensions/TestSkeleton.java
@@ -46,7 +46,7 @@ public class TestSkeleton extends complexlib.ComplexTestCase
/* ------------------------------------------------------------------ */
public void before() throws com.sun.star.uno.Exception, java.lang.Exception
{
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
}
/* ------------------------------------------------------------------ */