qadevOOo/tests/java/mod/_remotebridge/various.java | 40 --------------------- 1 file changed, 40 deletions(-)
New commits: commit 130c2b80520b92353d9e1fc4626277bab9af3b6c Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Jul 26 09:02:24 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Jul 26 21:37:09 2019 +0200 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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits