diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-26 09:02:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-26 21:37:09 +0200 |
commit | 130c2b80520b92353d9e1fc4626277bab9af3b6c (patch) | |
tree | f6f0f84206de2bdbb758e2df35cdba6411590d05 /qadevOOo | |
parent | 8b533ac06c302c68ccc78552ab3b9ef578c3e8d9 (diff) |
cid#1448357 RV: Bad use of return value
Change-Id: I7bbc81e0b01e90c368a29ac505418471f640cdf6
Reviewed-on: https://gerrit.libreoffice.org/76360
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/mod/_remotebridge/various.java | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/qadevOOo/tests/java/mod/_remotebridge/various.java b/qadevOOo/tests/java/mod/_remotebridge/various.java index c18d6a4ef1eb..21f3c0892955 100644 --- a/qadevOOo/tests/java/mod/_remotebridge/various.java +++ b/qadevOOo/tests/java/mod/_remotebridge/various.java @@ -76,44 +76,6 @@ public class various extends TestCase { public XInterface bridge = null; /** - * Implementation of interface XInstanceProvider - * - * @see com.sun.star.bridge.XInstanceProvider - */ - private static class MyInstanceProvider implements XInstanceProvider { - /** - * a MultiServiceFactory for creating instances - * - * @see com.sun.star.lang.MultiServiceFactory - */ - private final XMultiServiceFactory xMSF; - - /** - * Construct object with a MultiServiceFactory - * - * @see com.sun.star.lang.MultiServiceFactory - */ - private MyInstanceProvider(XMultiServiceFactory xMSF) { - this.xMSF = xMSF; - } - - /** - * get an instance by name - */ - public Object getInstance(String aInstanceName) - throws com.sun.star.container.NoSuchElementException - { - System.out.println("######## Try to get "+aInstanceName); - try { - return xMSF.createInstance(aInstanceName); - } - catch(com.sun.star.uno.Exception e) { - throw new StatusException("Unexpected exception", e); - } - } - } - - /** * Calls <code>accept()</code> method in a separate thread. * Then stores exception thrown by call if it occurred, or * return value. @@ -196,8 +158,6 @@ public class various extends TestCase { "com.sun.star.bridge.BridgeFactory") ; xBrdgFctr = UnoRuntime.queryInterface(XBridgeFactory.class, oBrdg); - // create own implementation of XInstanceProvider - new MyInstanceProvider(xMSF); // create waiting acceptor thread accThread = new AcceptorThread(xAcctr); accThread.start(); |