From 9adb820158bdbfa0a34d843d4eb4c35963f00ac5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 9 Dec 2014 15:09:18 +0200 Subject: java: simplify the getMSF() methods Change-Id: Ib459799f4a3224f8c9683ac4b6cf37982d2077a3 Reviewed-on: https://gerrit.libreoffice.org/13406 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sfx2/qa/complex/sfx2/DocumentMetadataAccess.java | 3 +-- sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'sfx2') diff --git a/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java b/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java index 39d6b3e6dc52..3843cb90e398 100644 --- a/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java +++ b/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java @@ -1233,8 +1233,7 @@ public class DocumentMetadataAccess private XMultiServiceFactory getMSF() { - final XMultiServiceFactory xMSF1 = UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager()); - return xMSF1; + return UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager()); } // setup and close connections diff --git a/sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java b/sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java index 680afb7c0533..3f7574c590b7 100644 --- a/sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java +++ b/sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java @@ -240,10 +240,9 @@ public class GlobalEventBroadcaster { } } - private XMultiServiceFactory getMSF() + private XMultiServiceFactory getMSF() { - final XMultiServiceFactory xMSF1 = UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager()); - return xMSF1; + return UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager()); } // setup and close connections -- cgit