summaryrefslogtreecommitdiff
path: root/forms/qa
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 /forms/qa
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 'forms/qa')
-rw-r--r--forms/qa/integration/forms/CellBinding.java2
-rw-r--r--forms/qa/integration/forms/ControlValidation.java2
-rw-r--r--forms/qa/integration/forms/FormControlTest.java2
-rw-r--r--forms/qa/integration/forms/FormPropertyBags.java2
-rw-r--r--forms/qa/integration/forms/MasterDetailForms.java2
-rw-r--r--forms/qa/integration/forms/RadioButtons.java2
-rw-r--r--forms/qa/integration/forms/TestCase.java2
-rw-r--r--forms/qa/integration/forms/XMLFormSettings.java2
8 files changed, 8 insertions, 8 deletions
diff --git a/forms/qa/integration/forms/CellBinding.java b/forms/qa/integration/forms/CellBinding.java
index d8758017ccc1..92060711130a 100644
--- a/forms/qa/integration/forms/CellBinding.java
+++ b/forms/qa/integration/forms/CellBinding.java
@@ -93,7 +93,7 @@ public class CellBinding 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_document = new SpreadsheetDocument( m_orb );
m_formLayer = new FormLayer( m_document );
}
diff --git a/forms/qa/integration/forms/ControlValidation.java b/forms/qa/integration/forms/ControlValidation.java
index 55718f71adc1..d6d7622731cc 100644
--- a/forms/qa/integration/forms/ControlValidation.java
+++ b/forms/qa/integration/forms/ControlValidation.java
@@ -61,7 +61,7 @@ public class ControlValidation extends complexlib.ComplexTestCase implements com
/* ------------------------------------------------------------------ */
public void before() throws com.sun.star.uno.Exception, java.lang.Exception
{
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
}
/* ------------------------------------------------------------------ */
diff --git a/forms/qa/integration/forms/FormControlTest.java b/forms/qa/integration/forms/FormControlTest.java
index 55ddfbfbf2a9..3126a1929087 100644
--- a/forms/qa/integration/forms/FormControlTest.java
+++ b/forms/qa/integration/forms/FormControlTest.java
@@ -463,7 +463,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
/* ------------------------------------------------------------------ */
private boolean ensureDataSource() throws Exception
{
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
XNameAccess databaseContext = UnoRuntime.queryInterface( XNameAccess.class,
m_orb.createInstance( "com.sun.star.sdb.DatabaseContext" ) );
diff --git a/forms/qa/integration/forms/FormPropertyBags.java b/forms/qa/integration/forms/FormPropertyBags.java
index 47f50541582d..184fd35be2d5 100644
--- a/forms/qa/integration/forms/FormPropertyBags.java
+++ b/forms/qa/integration/forms/FormPropertyBags.java
@@ -66,7 +66,7 @@ public class FormPropertyBags extends complexlib.ComplexTestCase implements XPro
/* ------------------------------------------------------------------ */
public void before() throws com.sun.star.uno.Exception, java.lang.Exception
{
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
m_document = DocumentHelper.blankTextDocument( m_orb );
m_formLayer = new FormLayer( m_document );
}
diff --git a/forms/qa/integration/forms/MasterDetailForms.java b/forms/qa/integration/forms/MasterDetailForms.java
index dd2a09e62dee..6d8222a85e90 100644
--- a/forms/qa/integration/forms/MasterDetailForms.java
+++ b/forms/qa/integration/forms/MasterDetailForms.java
@@ -76,7 +76,7 @@ public class MasterDetailForms extends complexlib.ComplexTestCase implements com
/* ------------------------------------------------------------------ */
public void before()
{
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
}
/* ------------------------------------------------------------------ */
diff --git a/forms/qa/integration/forms/RadioButtons.java b/forms/qa/integration/forms/RadioButtons.java
index b2c641caad73..3e83af998fef 100644
--- a/forms/qa/integration/forms/RadioButtons.java
+++ b/forms/qa/integration/forms/RadioButtons.java
@@ -61,7 +61,7 @@ public class RadioButtons extends complexlib.ComplexTestCase
/* ------------------------------------------------------------------ */
public void before() throws com.sun.star.uno.Exception, java.lang.Exception
{
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
}
/* ------------------------------------------------------------------ */
diff --git a/forms/qa/integration/forms/TestCase.java b/forms/qa/integration/forms/TestCase.java
index 85e1d16ac91f..a4ab28e48cb3 100644
--- a/forms/qa/integration/forms/TestCase.java
+++ b/forms/qa/integration/forms/TestCase.java
@@ -44,7 +44,7 @@ public abstract class TestCase extends complexlib.ComplexTestCase implements com
/* ------------------------------------------------------------------ */
public void before() throws com.sun.star.uno.Exception, java.lang.Exception
{
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
}
/* ------------------------------------------------------------------ */
diff --git a/forms/qa/integration/forms/XMLFormSettings.java b/forms/qa/integration/forms/XMLFormSettings.java
index cfa9539bfec4..1d26ff2a5090 100644
--- a/forms/qa/integration/forms/XMLFormSettings.java
+++ b/forms/qa/integration/forms/XMLFormSettings.java
@@ -69,7 +69,7 @@ public class XMLFormSettings extends complexlib.ComplexTestCase
public void before() throws java.lang.Exception
{
// create the document and assign related members
- m_orb = (XMultiServiceFactory)param.getMSF();
+ m_orb = param.getMSF();
m_document = new XMLDocument( m_orb );
m_formLayer = new FormLayer( m_document );