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 /qadevOOo | |
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 'qadevOOo')
9 files changed, 3 insertions, 33 deletions
diff --git a/qadevOOo/runner/util/WaitUnreachable.java b/qadevOOo/runner/util/WaitUnreachable.java index e33220681ff7..f90fa6552461 100644 --- a/qadevOOo/runner/util/WaitUnreachable.java +++ b/qadevOOo/runner/util/WaitUnreachable.java @@ -114,5 +114,6 @@ public final class WaitUnreachable { private Object obj; private final ReferenceQueue<Object> queue; + @SuppressWarnings("unused") private final PhantomReference<Object> ref; } diff --git a/qadevOOo/testdocs/qadevlibs/source/test/Job.java b/qadevOOo/testdocs/qadevlibs/source/test/Job.java index c2aae762bddd..c763b95d3507 100644 --- a/qadevOOo/testdocs/qadevlibs/source/test/Job.java +++ b/qadevOOo/testdocs/qadevlibs/source/test/Job.java @@ -31,7 +31,7 @@ import com.sun.star.comp.loader.FactoryHelper; public class Job { - static private class _Implementation implements XServiceInfo, XTypeProvider, + static public class _Implementation implements XServiceInfo, XTypeProvider, XJob, XNamed { static private final String __serviceName = "test.Job"; Object oDoc = null; diff --git a/qadevOOo/tests/java/mod/_forms/OListBoxModel.java b/qadevOOo/tests/java/mod/_forms/OListBoxModel.java index 69db57197b1e..a1b7f1e200aa 100644 --- a/qadevOOo/tests/java/mod/_forms/OListBoxModel.java +++ b/qadevOOo/tests/java/mod/_forms/OListBoxModel.java @@ -189,14 +189,12 @@ public class OListBoxModel extends GenericModelTest { private XPropertySet ps = null; private XInterface ctrl = null; private String ChangePropertyName = null; - Object ChangePropertyValue = null; public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName, Object ChangePropertyValue) { formLoaderF = xl; this.ps = ps; this.ctrl = ctrl; this.ChangePropertyName=ChangePropertyName; - this.ChangePropertyValue=ChangePropertyValue; } public void update() throws Exception { diff --git a/qadevOOo/tests/java/mod/_forms/OTimeModel.java b/qadevOOo/tests/java/mod/_forms/OTimeModel.java index 4e1525bed3fd..c56a81bf1bb4 100644 --- a/qadevOOo/tests/java/mod/_forms/OTimeModel.java +++ b/qadevOOo/tests/java/mod/_forms/OTimeModel.java @@ -180,15 +180,11 @@ public class OTimeModel extends GenericModelTest { private XLoadable formLoaderF = null; private XPropertySet ps = null; private XInterface ctrl = null; - private String ChangePropertyName = null; - Object ChangePropertyValue = null; public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName, Object ChangePropertyValue) { formLoaderF = xl; this.ps = ps; this.ctrl = ctrl; - this.ChangePropertyName=ChangePropertyName; - this.ChangePropertyValue=ChangePropertyValue; } private int lastTime = 0; diff --git a/qadevOOo/tests/java/mod/_remotebridge/uno/various.java b/qadevOOo/tests/java/mod/_remotebridge/uno/various.java index d23af9a14174..38367978bd80 100644 --- a/qadevOOo/tests/java/mod/_remotebridge/uno/various.java +++ b/qadevOOo/tests/java/mod/_remotebridge/uno/various.java @@ -119,11 +119,6 @@ public class various extends TestCase { * return value. */ private class AcceptorThread extends Thread { - /** - * If exception occurred during method call it is - * stored in this field. - */ - private Exception ex = null ; private final XAcceptor acc; private final XInstanceProvider xInstProv; private final XBridgeFactory xBrdgFctr; @@ -154,11 +149,8 @@ public class various extends TestCase { xBrdgFctr.createBridge("MyBridge", "urp", acceptedCall, xInstProv); } catch (com.sun.star.connection.ConnectionSetupException e) { - ex = e ; } catch (com.sun.star.connection.AlreadyAcceptingException e) { - ex = e ; } catch (com.sun.star.bridge.BridgeExistsException e) { - ex = e ; } } } diff --git a/qadevOOo/tests/java/mod/_remotebridge/various.java b/qadevOOo/tests/java/mod/_remotebridge/various.java index a00f98f16582..2dc605fb03c6 100644 --- a/qadevOOo/tests/java/mod/_remotebridge/various.java +++ b/qadevOOo/tests/java/mod/_remotebridge/various.java @@ -120,16 +120,7 @@ public class various extends TestCase { * return value. */ private class AcceptorThread extends Thread { - /** - * If exception occurred during method call it is - * stored in this field. - */ - private Exception ex = null ; private final XAcceptor acc; - /** - * If method call returns some value it stores in this field. - */ - private XConnection acceptedCall = null ; /** * Creates object which can call <code>accept</code> method @@ -146,11 +137,9 @@ public class various extends TestCase { @Override public void run() { try { - acceptedCall = acc.accept(connectString) ; + acc.accept(connectString) ; } catch (com.sun.star.connection.ConnectionSetupException e) { - ex = e ; } catch (com.sun.star.connection.AlreadyAcceptingException e) { - ex = e ; } } } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java index bd525d7f0961..a7e8de208e80 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java @@ -35,7 +35,6 @@ import com.sun.star.accessibility.XAccessibleContext; import com.sun.star.awt.XExtendedToolkit; import com.sun.star.awt.XWindow; import com.sun.star.beans.PropertyValue; -import com.sun.star.lang.XComponent; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; @@ -172,7 +171,6 @@ public class ScAccessibleCsvCell extends TestCase { private final SOfficeFactory SOF; private final PropertyValue[] args; - public XComponent xSpreadSheedDoc = null; private loadThread(SOfficeFactory SOF, PropertyValue[] Args) { this.SOF = SOF; diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java index 8d6687cf01dd..bc440dc04f90 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java @@ -34,7 +34,6 @@ import com.sun.star.accessibility.XAccessibleAction; import com.sun.star.awt.XExtendedToolkit; import com.sun.star.awt.XWindow; import com.sun.star.beans.PropertyValue; -import com.sun.star.lang.XComponent; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; @@ -158,7 +157,6 @@ public class ScAccessibleCsvGrid extends TestCase { private final SOfficeFactory SOF; private final PropertyValue[] args; - public XComponent xSpreadSheedDoc = null; private loadThread(SOfficeFactory SOF, PropertyValue[] Args) { this.SOF = SOF; diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java index 549c8cb4985c..73cd68f0f484 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java @@ -36,7 +36,6 @@ import com.sun.star.accessibility.XAccessibleText; import com.sun.star.awt.XExtendedToolkit; import com.sun.star.awt.XWindow; import com.sun.star.beans.PropertyValue; -import com.sun.star.lang.XComponent; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; @@ -193,7 +192,6 @@ public class ScAccessibleCsvRuler extends TestCase { private final SOfficeFactory SOF; private final PropertyValue[] args; - public XComponent xSpreadSheedDoc = null; private loadThread(SOfficeFactory SOF, PropertyValue[] Args) { this.SOF = SOF; |