[Libreoffice-commits] core.git: bridges/test connectivity/qa dbaccess/qa javaunohelper/test jurt/com jurt/test jurt/workbench odk/source qadevOOo/runner qadevOOo/testdocs qadevOOo/tests sc/qa sfx2/qa sw/qa toolkit/test unoxml/qa wizards/com

Noel Grandin noel at peralex.com
Mon Dec 15 04:37:10 PST 2014


 bridges/test/java_uno/any/TestAny.java                                |   20 ----------
 bridges/test/java_uno/equals/TestEquals.java                          |    2 -
 bridges/test/lib/TestBed.java                                         |    2 -
 bridges/test/testclient.java                                          |    2 -
 connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java        |    8 ----
 dbaccess/qa/complex/dbaccess/DatabaseDocument.java                    |    2 -
 javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java  |    2 -
 javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java     |    2 -
 javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java     |    2 -
 jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java       |    2 +
 jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java |    8 ----
 jurt/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test.java     |    2 -
 jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java    |    2 -
 odk/source/com/sun/star/lib/loader/InstallationFinder.java            |    2 -
 qadevOOo/runner/util/WaitUnreachable.java                             |    1 
 qadevOOo/testdocs/qadevlibs/source/test/Job.java                      |    2 -
 qadevOOo/tests/java/mod/_forms/OListBoxModel.java                     |    2 -
 qadevOOo/tests/java/mod/_forms/OTimeModel.java                        |    4 --
 qadevOOo/tests/java/mod/_remotebridge/uno/various.java                |    8 ----
 qadevOOo/tests/java/mod/_remotebridge/various.java                    |   13 ------
 qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java                  |    2 -
 qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java                  |    2 -
 qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java                 |    2 -
 sc/qa/complex/dataPilot/_XPropertySet.java                            |    2 -
 sfx2/qa/complex/sfx2/DocumentMetadataAccess.java                      |    1 
 sw/qa/complex/writer/TextPortionEnumerationTest.java                  |    2 -
 toolkit/test/accessibility/AccessibilityTree.java                     |    3 -
 toolkit/test/accessibility/AccessibilityWorkBench.java                |    3 -
 unoxml/qa/complex/unoxml/DOMTest.java                                 |    3 -
 wizards/com/sun/star/wizards/form/FormWizard.java                     |    6 ---
 wizards/com/sun/star/wizards/query/QueryWizard.java                   |    5 --
 wizards/com/sun/star/wizards/report/GroupFieldHandler.java            |    6 ---
 wizards/com/sun/star/wizards/report/ReportWizard.java                 |    5 --
 wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java          |    2 -
 34 files changed, 19 insertions(+), 113 deletions(-)

New commits:
commit 454ddddd9995ad7c6f865729d160814f5a9f093a
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Dec 12 14:05:04 2014 +0200

    java: remove some unused fields and variables
    
    Change-Id: I5d6071096307adbe7df0178000346cf915afa3e7
    Reviewed-on: https://gerrit.libreoffice.org/13477
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/bridges/test/java_uno/any/TestAny.java b/bridges/test/java_uno/any/TestAny.java
index 752f2c3..1e1f066 100644
--- a/bridges/test/java_uno/any/TestAny.java
+++ b/bridges/test/java_uno/any/TestAny.java
@@ -2182,10 +2182,6 @@ final class TestAny {
             super(0);
         }
 
-        public static Enum1 fromInt(int value) {
-            return new Enum1();
-        }
-
         @Override
         public boolean equals(Object obj) {
             return obj != null && obj.getClass() == Enum1.class;
@@ -2216,10 +2212,6 @@ final class TestAny {
     private static class BaseException extends com.sun.star.uno.Exception {
         public BaseException() {}
 
-        private BaseException(String message) {
-            super(message);
-        }
-
         @Override
         public boolean equals(Object obj) {
             return obj != null && obj.getClass() == BaseException.class;
@@ -2229,10 +2221,6 @@ final class TestAny {
     private static class DerivedException extends BaseException {
         public DerivedException() {}
 
-        public DerivedException(String message) {
-            super(message);
-        }
-
         @Override
         public boolean equals(Object obj) {
             return obj != null && obj.getClass() == DerivedException.class;
@@ -2244,10 +2232,6 @@ final class TestAny {
     {
         public BaseRuntimeException() {}
 
-        private BaseRuntimeException(String message) {
-            super(message);
-        }
-
         @Override
         public boolean equals(Object obj) {
             return obj != null
@@ -2259,10 +2243,6 @@ final class TestAny {
     {
         public DerivedRuntimeException() {}
 
-        public DerivedRuntimeException(String message) {
-            super(message);
-        }
-
         @Override
         public boolean equals(Object obj) {
             return obj != null
diff --git a/bridges/test/java_uno/equals/TestEquals.java b/bridges/test/java_uno/equals/TestEquals.java
index 5e6c490..b776519 100644
--- a/bridges/test/java_uno/equals/TestEquals.java
+++ b/bridges/test/java_uno/equals/TestEquals.java
@@ -94,7 +94,7 @@ public final class TestEquals {
                               prov.getInstance(INSTANCE2));
             XConnection connection = acceptor.accept(CONNECTION_DESCRIPTION);
             System.out.println("Client, 2nd connection: ...connected...");
-            XBridge bridge2 = factory.createBridge(
+            factory.createBridge(
                 "", PROTOCOL_DESCRIPTION, connection, prov);
             System.out.println("Client, 2nd connection: ...bridged.");
             synchronized (lock) {
diff --git a/bridges/test/lib/TestBed.java b/bridges/test/lib/TestBed.java
index 3e33235..cff5698 100644
--- a/bridges/test/lib/TestBed.java
+++ b/bridges/test/lib/TestBed.java
@@ -167,7 +167,7 @@ public final class TestBed {
                     XConnection connection = acceptor.accept(
                         connectionDescription);
                     System.out.println("Server: ...connected...");
-                    XBridge bridge = factory.createBridge(
+                    factory.createBridge(
                         "", protocolDescription, connection, provider);
                     System.out.println("Server: ...bridged.");
                 }
diff --git a/bridges/test/testclient.java b/bridges/test/testclient.java
index 41e5010..933b2eb 100644
--- a/bridges/test/testclient.java
+++ b/bridges/test/testclient.java
@@ -115,7 +115,7 @@ public class testclient
                 if( null != xConnection )
                 {
                     System.out.println( "after connect" );
-                    com.sun.star.uno.IBridge bridge = UnoRuntime.getBridgeByName(
+                    UnoRuntime.getBridgeByName(
                         "java",
                         null,
                         "remote",
diff --git a/connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java b/connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java
index 66c65e1..9658bca 100644
--- a/connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java
+++ b/connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java
@@ -79,8 +79,6 @@ public class TestCacheSize {
     // frequent reporting of progress
     private boolean reportProgress = false;
 
-    private XMultiServiceFactory servicefactory = null;
-
     // type of the big table {MEMORY | CACHED | TEXT}
     private String tableType      = "CACHED";
     private int    cacheScale     = 17;
@@ -109,8 +107,6 @@ public class TestCacheSize {
     private boolean multikeytable = false;
 
 
-    private String     user;
-    private String     password;
     private XStatement  sStatement;
     private XConnection cConnection;
     XDataSource ds;
@@ -118,7 +114,6 @@ public class TestCacheSize {
     private com.sun.star.beans.PropertyValue[] info;
 
     public TestCacheSize(XMultiServiceFactory _xmulti,com.sun.star.beans.PropertyValue[] _info,XDriver _drv){
-        servicefactory = _xmulti;
         drv = _drv;
         info = _info;
     }
@@ -129,9 +124,6 @@ public class TestCacheSize {
 
     public void setUp() {
 
-        user     = "sa";
-        password = "";
-
         try {
             sStatement  = null;
             cConnection = null;
diff --git a/dbaccess/qa/complex/dbaccess/DatabaseDocument.java b/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
index eeee8f8..582bc3d 100644
--- a/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
+++ b/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
@@ -516,7 +516,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document.
     private void impl_storeDocument( final XModel _document ) throws Exception
     {
         // store the document
-        final String documentURL = FileHelper.getOOoCompatibleFileURL( _document.getURL() );
+        FileHelper.getOOoCompatibleFileURL( _document.getURL() );
         final XStorable storeDoc = UnoRuntime.queryInterface(XStorable.class, _document);
         storeDoc.store();
 
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
index f074694..083e855 100644
--- a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
+++ b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
@@ -602,7 +602,7 @@ public class PropertySet_Test
         cl.anyPropA= null;
         cl.propAnyA.Attributes= PropertyAttribute.MAYBEVOID;
 
-        Type _t= new Type(Object.class);
+        new Type(Object.class);
         cl.setPropertyValue("PropAnyA", null);
         assertEquals(cl.anyPropA.getType(), new Type(void.class));
         assertNull(cl.anyPropA.getObject());
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java b/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
index 28a2779..cfce044 100644
--- a/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
+++ b/javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
@@ -43,7 +43,7 @@ public class ProxyProvider
             return retVal;
 
         Type type= new Type(TypeDescription.getTypeDescription(iface));
-        Type evtType= new Type(TypeDescription.getTypeDescription(com.sun.star.lang.XEventListener.class));
+        new Type(TypeDescription.getTypeDescription(com.sun.star.lang.XEventListener.class));
         // find the object identifier
         String sOid= UnoRuntime.generateOid(obj);
         retVal= env.getRegisteredInterface(sOid, type);
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java
index 8e07a2b..a649f16 100644
--- a/javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java
+++ b/javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java
@@ -67,7 +67,7 @@ public class WeakBase_Test
         Type[] t1= f1.getTypes();
         Type[] t2= f2.getTypes();
         assertArrayEquals(t1, t2);
-        Foo2 f3= new Foo2();
+        new Foo2();
     }
 
     @Test public void queryAdapter() throws Exception
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 e249062..f7876ac 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 4878428..1a48b53 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 d44e6c5..8f0811b 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 e0b4ac8..4f88464 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());
diff --git a/odk/source/com/sun/star/lib/loader/InstallationFinder.java b/odk/source/com/sun/star/lib/loader/InstallationFinder.java
index eb1c78c..05ba219 100644
--- a/odk/source/com/sun/star/lib/loader/InstallationFinder.java
+++ b/odk/source/com/sun/star/lib/loader/InstallationFinder.java
@@ -424,7 +424,7 @@ final class InstallationFinder {
                         lines.get( i ), "=" );
                     if ( tokens.countTokens() != 2 )
                         continue;
-                    String key = tokens.nextToken();
+                    tokens.nextToken(); // key
                     String url = tokens.nextToken();
                     path = getCanonicalPathFromFileURL( url );
                     if ( path != null )
diff --git a/qadevOOo/runner/util/WaitUnreachable.java b/qadevOOo/runner/util/WaitUnreachable.java
index e332206..f90fa65 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 c2aae76..c763b95 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 69db571..a1b7f1e 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 4e1525b..c56a81b 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 d23af9a..38367978 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 a00f98f..2dc605f 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 bd525d7..a7e8de2 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 8d6687c..bc440dc 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 549c8cb..73cd68f 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;
diff --git a/sc/qa/complex/dataPilot/_XPropertySet.java b/sc/qa/complex/dataPilot/_XPropertySet.java
index 70875a9..c7174c9 100644
--- a/sc/qa/complex/dataPilot/_XPropertySet.java
+++ b/sc/qa/complex/dataPilot/_XPropertySet.java
@@ -343,7 +343,7 @@ public class _XPropertySet {
         }
 
         try {
-            Object gValue = oObj.getPropertyValue(toCheck);
+            oObj.getPropertyValue(toCheck);
         } catch (com.sun.star.beans.UnknownPropertyException e) {
             System.out.println("Exception occurred while trying to get property '"+
                  PTT.normal+"'");
diff --git a/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java b/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java
index f2944f0..5b6bc0c 100644
--- a/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java
+++ b/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java
@@ -45,7 +45,6 @@ import com.sun.star.lang.XComponent;
 
 import com.sun.star.lang.XServiceInfo;
 import com.sun.star.lang.IllegalArgumentException;
-import com.sun.star.lang.WrappedTargetException;
 import com.sun.star.beans.XPropertySet;
 import com.sun.star.beans.PropertyValue;
 import com.sun.star.beans.StringPair;
diff --git a/sw/qa/complex/writer/TextPortionEnumerationTest.java b/sw/qa/complex/writer/TextPortionEnumerationTest.java
index db99d69..f534dd2 100644
--- a/sw/qa/complex/writer/TextPortionEnumerationTest.java
+++ b/sw/qa/complex/writer/TextPortionEnumerationTest.java
@@ -1268,7 +1268,7 @@ public class TextPortionEnumerationTest
 
     @Test public void testTextField() throws Exception
     {
-        String name = mkName("ruby");
+        mkName("ruby");
         TreeNode root = new TreeNode();
         TreeNode txtf = new TextFieldNode("abc");
         root.appendChild(txtf);
diff --git a/toolkit/test/accessibility/AccessibilityTree.java b/toolkit/test/accessibility/AccessibilityTree.java
index f1210af..867fdbf 100644
--- a/toolkit/test/accessibility/AccessibilityTree.java
+++ b/toolkit/test/accessibility/AccessibilityTree.java
@@ -53,8 +53,6 @@ public class AccessibilityTree
                 new StringNode ("Please press Update button", null));
         maTree.setModel (aModel);
 
-        maCellRenderer = new AccessibleTreeCellRenderer();
-
         maTree.addMouseListener (new MouseListener (this));
 
         // Listen to expansions and collapses to change the mouse cursor.
@@ -382,7 +380,6 @@ public class AccessibilityTree
 
 
 
-    private AccessibleTreeCellRenderer  maCellRenderer;
     private final JTree  maTree;
     private int mnExpandLevel;
 }
diff --git a/toolkit/test/accessibility/AccessibilityWorkBench.java b/toolkit/test/accessibility/AccessibilityWorkBench.java
index 4e29d67..1c167b1 100644
--- a/toolkit/test/accessibility/AccessibilityWorkBench.java
+++ b/toolkit/test/accessibility/AccessibilityWorkBench.java
@@ -98,7 +98,6 @@ public class AccessibilityWorkBench
             + System.getProperty ("os.version"));
         MessageArea.println ("Using port " + nPortNumber);
         office = new SimpleOffice (nPortNumber);
-        info = new InformationWriter ();
 
         maAccessibilityTree.getComponent().addTreeSelectionListener (this);
 
@@ -568,8 +567,6 @@ public class AccessibilityWorkBench
 
     private SimpleOffice
         office;
-    private InformationWriter
-        info;
 
     private JPanel
         maButtonBar;
diff --git a/unoxml/qa/complex/unoxml/DOMTest.java b/unoxml/qa/complex/unoxml/DOMTest.java
index e6048ef..6111199 100644
--- a/unoxml/qa/complex/unoxml/DOMTest.java
+++ b/unoxml/qa/complex/unoxml/DOMTest.java
@@ -88,8 +88,7 @@ public class DOMTest
 
     @Test public void testXSAXDocumentBuilder() throws Exception
     {
-        XSAXDocumentBuilder xSAXBuilder =
-            UnoRuntime.queryInterface(XSAXDocumentBuilder.class,
+        UnoRuntime.queryInterface(XSAXDocumentBuilder.class,
             m_xMSF.createInstance("com.sun.star.xml.dom.SAXDocumentBuilder"));
         //FIXME TODO
     }
diff --git a/wizards/com/sun/star/wizards/form/FormWizard.java b/wizards/com/sun/star/wizards/form/FormWizard.java
index fe1791e..bf8ba4b 100644
--- a/wizards/com/sun/star/wizards/form/FormWizard.java
+++ b/wizards/com/sun/star/wizards/form/FormWizard.java
@@ -376,12 +376,6 @@ public class FormWizard extends DatabaseObjectWizard
         private int ID;
 
         // @Override
-        public int getID()
-        {
-            return ID;
-        }
-
-        // @Override
         public void setID(String sIncSuffix)
         {
             ID = 1;
diff --git a/wizards/com/sun/star/wizards/query/QueryWizard.java b/wizards/com/sun/star/wizards/query/QueryWizard.java
index c058e4d..098513e 100644
--- a/wizards/com/sun/star/wizards/query/QueryWizard.java
+++ b/wizards/com/sun/star/wizards/query/QueryWizard.java
@@ -399,11 +399,6 @@ public class QueryWizard extends DatabaseObjectWizard
 
         private int ID;
 
-        public int getID()
-        {
-            return ID;
-        }
-
         public void setID(String sIncSuffix)
         {
             ID = 1;
diff --git a/wizards/com/sun/star/wizards/report/GroupFieldHandler.java b/wizards/com/sun/star/wizards/report/GroupFieldHandler.java
index b0dc127..1619748 100644
--- a/wizards/com/sun/star/wizards/report/GroupFieldHandler.java
+++ b/wizards/com/sun/star/wizards/report/GroupFieldHandler.java
@@ -176,12 +176,6 @@ public class GroupFieldHandler extends FieldSelection
             }
         }
 
-        public int getID()
-        {
-            // TODO: here is a good place for a comment, isn't it?
-            return 2;
-        }
-
         public void setID(String sIncSuffix)
         {
         }
diff --git a/wizards/com/sun/star/wizards/report/ReportWizard.java b/wizards/com/sun/star/wizards/report/ReportWizard.java
index 708e43b..cb6fcf71 100644
--- a/wizards/com/sun/star/wizards/report/ReportWizard.java
+++ b/wizards/com/sun/star/wizards/report/ReportWizard.java
@@ -642,11 +642,6 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener
 
         private int m_nID;
 
-        public int getID()
-        {
-            return m_nID;
-        }
-
         public void setID(String sIncSuffix)
         {
             m_nID = 1;
diff --git a/wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java b/wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java
index b134b77..1754b1c 100644
--- a/wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java
+++ b/wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java
@@ -37,7 +37,6 @@ public abstract class DBLimitedFieldSelection
     protected short curtabindex;
     protected int iCurPosY;
     protected int FirstHelpIndex;
-    private int iCompPosX;
 
     public DBLimitedFieldSelection(WizardDialog _CurUnoDialog, int iStep, int _iCompPosX, int iCompPosY, int _FirstHelpIndex)
     {
@@ -46,7 +45,6 @@ public abstract class DBLimitedFieldSelection
         curtabindex = (short) (iStep * 100);
         sNoField = CurUnoDialog.m_oResource.getResText(UIConsts.RID_REPORT + 8);
         IStep = Integer.valueOf(iStep);
-        iCompPosX = _iCompPosX;
         iCurPosY = iCompPosY;
         for (int i = 0; i < rowcount; i++)
         {


More information about the Libreoffice-commits mailing list