diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-12 14:05:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-15 12:36:40 +0000 |
commit | 454ddddd9995ad7c6f865729d160814f5a9f093a (patch) | |
tree | 15b5ee999ec504002cc727284aea0882cc82b01e /jurt | |
parent | f8fbef265329dc2e6e153d22c0a3317fdc0789e1 (diff) |
java: remove some unused fields and variables
Change-Id: I5d6071096307adbe7df0178000346cf915afa3e7
Reviewed-on: https://gerrit.libreoffice.org/13477
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'jurt')
4 files changed, 5 insertions, 9 deletions
diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java index e249062fa07e..f7876acb7dec 100644 --- a/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java +++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java @@ -23,6 +23,7 @@ import com.sun.star.lib.util.AsynchronousFinalizer; import com.sun.star.uno.IQueryInterface; import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; + import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; @@ -155,6 +156,7 @@ final class ProxyFactory { private final String oid; private final Type type; + @SuppressWarnings("unused") private int dummy = 0; } diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java index 48784283a99a..1a48b53c17ec 100644 --- a/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java +++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java @@ -21,7 +21,6 @@ package com.sun.star.lib.uno.bridges.java_remote; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; - import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; @@ -30,16 +29,13 @@ import java.util.Map; import com.sun.star.lib.util.DisposeListener; import com.sun.star.lib.util.DisposeNotifier; - import com.sun.star.bridge.XBridge; import com.sun.star.bridge.XInstanceProvider; - import com.sun.star.connection.XConnection; import com.sun.star.lang.EventObject; import com.sun.star.lang.XComponent; import com.sun.star.lang.XEventListener; import com.sun.star.lang.DisposedException; - import com.sun.star.lib.uno.environments.java.java_environment; import com.sun.star.lib.uno.environments.remote.IProtocol; import com.sun.star.lib.uno.environments.remote.IReceiver; @@ -48,11 +44,8 @@ import com.sun.star.lib.uno.environments.remote.Message; import com.sun.star.lib.uno.environments.remote.ThreadId; import com.sun.star.lib.uno.environments.remote.ThreadPoolManager; import com.sun.star.lib.uno.environments.remote.IThreadPool; - import com.sun.star.lib.uno.typedesc.MethodDescription; import com.sun.star.lib.uno.typedesc.TypeDescription; - - import com.sun.star.uno.IBridge; import com.sun.star.uno.IEnvironment; import com.sun.star.uno.UnoRuntime; @@ -212,6 +205,7 @@ public class java_remote_bridge } private final Type type; + @SuppressWarnings("unused") private final Object object; private int count = 1; } diff --git a/jurt/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test.java b/jurt/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test.java index d44e6c5073e0..8f0811b73c2a 100644 --- a/jurt/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test.java +++ b/jurt/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test.java @@ -43,7 +43,7 @@ public final class BridgeFactory_Test { // test that we can not create another bridge with same name try { - XBridge dummy = bridgeFactory.createBridge("testbridge", "urp", leftSide, null); + bridgeFactory.createBridge("testbridge", "urp", leftSide, null); fail(); } diff --git a/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java b/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java index e0b4ac8e3a1b..4f88464d2e27 100644 --- a/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java +++ b/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java @@ -62,7 +62,7 @@ public class UrlResolver_Test // now create the desktop service // NOTE: use the office component context here ! - Object oDesktop = xOfficeFactory.createInstanceWithContext("com.sun.star.frame.Desktop", + xOfficeFactory.createInstanceWithContext("com.sun.star.frame.Desktop", xOfficeComponentContext ); } catch(com.sun.star.connection.NoConnectException e) { System.out.println(e.getMessage()); |