summaryrefslogtreecommitdiff
path: root/toolkit/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-09 15:09:18 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-12-10 08:04:58 +0000
commit9adb820158bdbfa0a34d843d4eb4c35963f00ac5 (patch)
tree735f90282e16ef9f5f88608c53e615c678d28010 /toolkit/qa
parentdd6c337d83eb21f7b4e2a1c755150f2e4c799fb7 (diff)
java: simplify the getMSF() methods
Change-Id: Ib459799f4a3224f8c9683ac4b6cf37982d2077a3 Reviewed-on: https://gerrit.libreoffice.org/13406 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'toolkit/qa')
-rw-r--r--toolkit/qa/complex/toolkit/AccessibleStatusBar.java4
-rw-r--r--toolkit/qa/complex/toolkit/AccessibleStatusBarItem.java3
2 files changed, 2 insertions, 5 deletions
diff --git a/toolkit/qa/complex/toolkit/AccessibleStatusBar.java b/toolkit/qa/complex/toolkit/AccessibleStatusBar.java
index f5193c18148c..ee88bbc4f4af 100644
--- a/toolkit/qa/complex/toolkit/AccessibleStatusBar.java
+++ b/toolkit/qa/complex/toolkit/AccessibleStatusBar.java
@@ -57,11 +57,9 @@ public class AccessibleStatusBar {
private XMultiServiceFactory getMSF()
{
- final XMultiServiceFactory xMSF1 = UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager());
- return xMSF1;
+ return UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager());
}
-
/**
* Sleeps for 0.5 sec. to allow StarOffice to react on <code>
* reset</code> call.
diff --git a/toolkit/qa/complex/toolkit/AccessibleStatusBarItem.java b/toolkit/qa/complex/toolkit/AccessibleStatusBarItem.java
index 4ef48cc539cb..e2d510887694 100644
--- a/toolkit/qa/complex/toolkit/AccessibleStatusBarItem.java
+++ b/toolkit/qa/complex/toolkit/AccessibleStatusBarItem.java
@@ -83,8 +83,7 @@ public class AccessibleStatusBarItem {
private XMultiServiceFactory getMSF()
{
- final XMultiServiceFactory xMSF1 = UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager());
- return xMSF1;
+ return UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager());
}
/**