diff options
34 files changed, 19 insertions, 113 deletions
diff --git a/bridges/test/java_uno/any/TestAny.java b/bridges/test/java_uno/any/TestAny.java index 752f2c303d3c..1e1f066dde06 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 5e6c49023c32..b77651949143 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 3e3323568666..cff5698e2a5c 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 41e501060cbd..933b2ebdd451 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 66c65e119945..9658bca70675 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 eeee8f8a9537..582bc3d1b9db 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 f074694e8caf..083e855fa581 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 28a277994bac..cfce044c5f06 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 8e07a2bf8bca..a649f1682ffc 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 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()); diff --git a/odk/source/com/sun/star/lib/loader/InstallationFinder.java b/odk/source/com/sun/star/lib/loader/InstallationFinder.java index eb1c78c412b2..05ba219bfe8b 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 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; diff --git a/sc/qa/complex/dataPilot/_XPropertySet.java b/sc/qa/complex/dataPilot/_XPropertySet.java index 70875a950314..c7174c975d86 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 f2944f019b8f..5b6bc0cadf44 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 db99d695d35f..f534dd263819 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 f1210afee26e..867fdbfa5ca0 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 4e29d6744942..1c167b1a8af7 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 e6048efb0093..6111199aca74 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 fe1791e6b3ae..bf8ba4bbf559 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 c058e4dae049..098513eb8a2e 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 b0dc12782476..16197483acc6 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 708e43bdc3a6..cb6fcf71b8b9 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 b134b77715f6..1754b1c00750 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++) { |