diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 16:22:54 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:01 +0200 |
commit | b707a707aae71f3e05dc096d8de14d2509e2b62f (patch) | |
tree | ea82bdb32f10a89fdd8c3c64596a179602c84466 /qadevOOo/tests | |
parent | 8cd0fc50aa895d5c1588623a7675dd5679752379 (diff) |
Java cleanup - remove unused local variables
Change-Id: Ied9c8635cde96d2d00d66a68cd8387799455c2ec
Diffstat (limited to 'qadevOOo/tests')
113 files changed, 173 insertions, 430 deletions
diff --git a/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java b/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java index 8b1092149182..dd4328f8d56f 100644 --- a/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java +++ b/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java @@ -63,7 +63,6 @@ public class CheckModuleAPI extends ComplexTestCase private static String mSRC_ROOT = null; private static boolean mIsInitialized = false; private final static boolean mContinue = true; - private static boolean mDebug = false; private static BuildEnvTools bet = null; /** @@ -94,9 +93,6 @@ public class CheckModuleAPI extends ComplexTestCase } mSRC_ROOT = bet.getSrcRoot(); - - mDebug = param.getBool(PropertyName.DEBUG_IS_ACTIVE); - } } diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java index 8a4fcfb32c44..3ae9b9413e7a 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java @@ -274,7 +274,7 @@ public class _XAccessibleContext extends MultiMethodTest { * Has <b> OK </b> status if the set is not null. */ public void _getAccessibleRelationSet() { - XAccessibleRelationSet set = oObj.getAccessibleRelationSet(); + oObj.getAccessibleRelationSet(); tRes.tested("getAccessibleRelationSet()", true); } diff --git a/qadevOOo/tests/java/ifc/awt/_XControl.java b/qadevOOo/tests/java/ifc/awt/_XControl.java index d217afda9377..bf3a08d7c2e4 100644 --- a/qadevOOo/tests/java/ifc/awt/_XControl.java +++ b/qadevOOo/tests/java/ifc/awt/_XControl.java @@ -195,7 +195,7 @@ public class _XControl extends MultiMethodTest { * and no exceptions were thrown. <p> */ public void _isTransparent() { - boolean isT = oObj.isTransparent(); + oObj.isTransparent(); tRes.tested("isTransparent()",true ); } diff --git a/qadevOOo/tests/java/ifc/awt/_XImageProducer.java b/qadevOOo/tests/java/ifc/awt/_XImageProducer.java index b57511b4ad3c..75669d264438 100644 --- a/qadevOOo/tests/java/ifc/awt/_XImageProducer.java +++ b/qadevOOo/tests/java/ifc/awt/_XImageProducer.java @@ -141,7 +141,6 @@ public class _XImageProducer extends MultiMethodTest { public void _startProduction() { requiredMethod("addConsumer()") ; - boolean result = true ; oObj.startProduction() ; try { diff --git a/qadevOOo/tests/java/ifc/awt/_XTabController.java b/qadevOOo/tests/java/ifc/awt/_XTabController.java index 17b183b3bd21..7c169d04ef12 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTabController.java +++ b/qadevOOo/tests/java/ifc/awt/_XTabController.java @@ -75,7 +75,7 @@ public class _XTabController extends MultiMethodTest { */ public void _getModel() { requiredMethod("setModel()"); - XTabControllerModel setModel = oObj.getModel(); + oObj.getModel(); tRes.tested("getModel()", Status.skipped(true)); } @@ -101,9 +101,8 @@ public class _XTabController extends MultiMethodTest { */ public void _getContainer() { requiredMethod( "setContainer()"); - XControlContainer setContainer = oObj.getContainer(); - XControlContainer relContainer = (XControlContainer ) - tEnv.getObjRelation("CONTAINER"); + oObj.getContainer(); + tEnv.getObjRelation("CONTAINER"); tRes.tested("getContainer()", Status.skipped(true) ); } @@ -112,7 +111,7 @@ public class _XTabController extends MultiMethodTest { * Has <b> OK </b> status if returned sequence is not null.<p> */ public void _getControls() { - XControl[] aControl = oObj.getControls(); + oObj.getControls(); tRes.tested("getControls()", Status.skipped(true) ); } diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java index c8235e97ca8d..2aeed1a7bc6a 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java @@ -45,8 +45,6 @@ public class _XMutableTreeNode extends MultiMethodTest { public XMutableTreeNode oObj = null; - private int mCount = 0; - private XMutableTreeNodeCreator nodeCreator = null; public static interface XMutableTreeNodeCreator{ diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java index 37699ec90010..e91bada6781a 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java @@ -61,8 +61,6 @@ public class _XTreeControl extends MultiMethodTest { public XTreeControl oObj = null; - private XMutableTreeNode mNewNode = null; - private XMutableTreeNode mXNode = null; XTreeExpansionListener mTreeExpansionListener1 = new TreeExpansionListenerImpl1(); diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java index cee6d766672e..cee52fcc520a 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java @@ -43,8 +43,6 @@ public class _XTreeDataModel extends MultiMethodTest { public XTreeDataModel oObj = null; - private XMutableTreeNode mNewNode = null; - XTreeDataModelListener mListener1 = new myEventListener1(); XTreeDataModelListener mListener2 = new myEventListener2(); @@ -126,7 +124,7 @@ public class _XTreeDataModel extends MultiMethodTest { public void _getRoot() { boolean bOK = true; - XTreeNode root = oObj.getRoot(); + oObj.getRoot(); tRes.tested("getRoot()", bOK); diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java index 49c4c9d6d12d..128e5e255fc0 100644 --- a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java @@ -70,8 +70,6 @@ public class _XMultiPropertySet extends MultiMethodTest { private XPropertySetInfo propertySetInfo = null; private String [] testPropsNames = null; private int testPropsAmount = 0; - private PrintWriter _log = null; - private Object[] values = null; private Set<String> exclProps = null; @@ -80,8 +78,6 @@ public class _XMultiPropertySet extends MultiMethodTest { * Initializes some fields. */ public void before() { - _log = log; - exclProps = (Set<String>) tEnv.getObjRelation("XMultiPropertySet.ExcludeProps"); if (exclProps == null) exclProps = new HashSet<String>(0); } @@ -165,7 +161,6 @@ public class _XMultiPropertySet extends MultiMethodTest { requiredMethod("getPropertyValues()"); - boolean result = true ; // Creating listener oObj.addPropertiesChangeListener(testPropsNames, PClistener); @@ -186,7 +181,6 @@ public class _XMultiPropertySet extends MultiMethodTest { propertiesChanged = false; oObj.setPropertyValues(testPropsNames, gValues); waitAMoment() ; - result &= propertiesChanged ; log.println(" ... done"); } catch (com.sun.star.beans.PropertyVetoException e) { log.println("Exception occurred while trying to change "+ diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java b/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java index b58e9e0d18ad..f12d84abdc2a 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java @@ -54,7 +54,7 @@ public class _XPropertyWithState extends MultiMethodTest { public void _getDefaultAsProperty() { try{ - XInterface defaultState = (XInterface) oObj.getDefaultAsProperty(); + oObj.getDefaultAsProperty(); } catch (com.sun.star.lang.WrappedTargetException e){ e.printStackTrace(log); diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java b/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java index 656135806752..9ecb306b4bb4 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java @@ -79,7 +79,7 @@ public class _XBackend extends MultiMethodTest { } try { - XUpdateHandler aHandler = oObj.getUpdateHandler( + oObj.getUpdateHandler( "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java b/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java index d54bbe76af33..b4fb0be0bd9a 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java @@ -35,7 +35,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { boolean res = true; try { - XLayer aLayer = oObj.getLayer("", ""); + oObj.getLayer("", ""); log.println("Exception expected -- FAILED"); res = false; } catch (com.sun.star.configuration.backend.BackendAccessException e) { @@ -124,7 +124,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { boolean res = true; try { - XUpdatableLayer aLayer = oObj.getUpdatableLayer(""); + oObj.getUpdatableLayer(""); log.println("Exception expected -- FAILED"); res = false; } catch (com.sun.star.configuration.backend.BackendAccessException e) { @@ -164,7 +164,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { boolean res = true; try { - String UpdateLayerID = oObj.getUpdateLayerId( + oObj.getUpdateLayerId( "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); @@ -210,7 +210,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { boolean res = true; try { - String[] LayerIDs = oObj.listLayerIds( + oObj.listLayerIds( "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java b/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java index 1e04a42c9a7c..4297c6c9f1dc 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java @@ -39,7 +39,7 @@ public class _XSingleLayerStratum extends MultiMethodTest { boolean res = true; try { - XLayer aLayer = oObj.getLayer("", ""); + oObj.getLayer("", ""); log.println("Exception expected -- FAILED"); res = false; } catch (com.sun.star.configuration.backend.BackendAccessException e) { @@ -74,7 +74,7 @@ public class _XSingleLayerStratum extends MultiMethodTest { boolean res = true; try { - XUpdatableLayer aLayer = oObj.getUpdatableLayer(""); + oObj.getUpdatableLayer(""); log.println("Exception expected -- FAILED"); res = false; } catch (com.sun.star.configuration.backend.BackendAccessException e) { diff --git a/qadevOOo/tests/java/ifc/container/_XContainer.java b/qadevOOo/tests/java/ifc/container/_XContainer.java index dd69bbdc0b99..9d718155c4a4 100644 --- a/qadevOOo/tests/java/ifc/container/_XContainer.java +++ b/qadevOOo/tests/java/ifc/container/_XContainer.java @@ -69,7 +69,6 @@ public class _XContainer extends MultiMethodTest { private boolean bElementInserted = false; private boolean bElementRemoved = false; private boolean bElementReplaced = false; - private PrintWriter _log = null; private XNameContainer NC = null ; private XControlContainer CC = null ; private XNamingService NV = null ; @@ -84,8 +83,6 @@ public class _XContainer extends MultiMethodTest { * object doesn't implement <code>XNameContainer</code> interface. */ public void before() throws StatusException { - _log = log; - // do this test with a different object Object altObj = tEnv.getObjRelation("XContainer.AlternateObject"); if (altObj != null) { diff --git a/qadevOOo/tests/java/ifc/container/_XContainerQuery.java b/qadevOOo/tests/java/ifc/container/_XContainerQuery.java index 4b9ece7fbd38..2d7659bfb244 100644 --- a/qadevOOo/tests/java/ifc/container/_XContainerQuery.java +++ b/qadevOOo/tests/java/ifc/container/_XContainerQuery.java @@ -101,7 +101,7 @@ public class _XContainerQuery extends MultiMethodTest { while (subSet.hasMoreElements()) { try{ - Object element = subSet.nextElement(); + subSet.nextElement(); } catch (com.sun.star.container.NoSuchElementException e){ log.println("Exception occurred "); @@ -135,7 +135,7 @@ public class _XContainerQuery extends MultiMethodTest { while (subSet.hasMoreElements()) { try{ - Object element = subSet.nextElement(); + subSet.nextElement(); } catch (com.sun.star.container.NoSuchElementException e){ log.println("Exception occurred "); diff --git a/qadevOOo/tests/java/ifc/container/_XEnumeration.java b/qadevOOo/tests/java/ifc/container/_XEnumeration.java index 6304934c99f0..10a23d7450d0 100644 --- a/qadevOOo/tests/java/ifc/container/_XEnumeration.java +++ b/qadevOOo/tests/java/ifc/container/_XEnumeration.java @@ -61,7 +61,7 @@ public class _XEnumeration extends MultiMethodTest { int tmpCounter = 0; while ( oObj.hasMoreElements() ) { try { - Object oAny = oObj.nextElement(); + oObj.nextElement(); counter ++; if (counter - tmpCounter > 10000) { log.println(counter+ " Elements"); @@ -108,7 +108,7 @@ public class _XEnumeration extends MultiMethodTest { log.println("additional call must throw NoSuchElementException"); try { - Object oAny = oObj.nextElement(); + oObj.nextElement(); log.println("nextElement: no exception!"); result = false; } catch (WrappedTargetException e) { diff --git a/qadevOOo/tests/java/ifc/container/_XIndexAccess.java b/qadevOOo/tests/java/ifc/container/_XIndexAccess.java index fcdd33b416e6..396635f642b5 100644 --- a/qadevOOo/tests/java/ifc/container/_XIndexAccess.java +++ b/qadevOOo/tests/java/ifc/container/_XIndexAccess.java @@ -81,8 +81,6 @@ public class _XIndexAccess extends MultiMethodTest { catch(java.lang.InterruptedException e) {} boolean result = true; - boolean loc_result = true; - Object o = null; log.println("Testing getByIndex()"); if (count > 0) { @@ -102,7 +100,7 @@ public class _XIndexAccess extends MultiMethodTest { log.println("Testing getByIndex with wrong params."); try { log.println("getByIndex(" + count + ")"); - loc_result = oObj.getByIndex(count) == null; + oObj.getByIndex(count); log.println("no exception thrown - FAILED"); result = false; } catch (IndexOutOfBoundsException e) { diff --git a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardEx.java b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardEx.java index 64c769935b5c..474f082c1411 100644 --- a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardEx.java +++ b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardEx.java @@ -40,7 +40,7 @@ public class _XClipboardEx extends MultiMethodTest { * Has <b> OK </b> status if no runtime exceptions occurred. */ public void _getRenderingCapabilities() { - byte caps = oObj.getRenderingCapabilities(); + oObj.getRenderingCapabilities(); tRes.tested("getRenderingCapabilities()", true); } } diff --git a/qadevOOo/tests/java/ifc/document/_XEventsSupplier.java b/qadevOOo/tests/java/ifc/document/_XEventsSupplier.java index 9a17c65c5891..277c3df1fba4 100644 --- a/qadevOOo/tests/java/ifc/document/_XEventsSupplier.java +++ b/qadevOOo/tests/java/ifc/document/_XEventsSupplier.java @@ -43,7 +43,7 @@ public class _XEventsSupplier extends MultiMethodTest { public void _getEvents() { XNameReplace xNR = oObj.getEvents(); - String str[] = xNR.getElementNames(); + xNR.getElementNames(); tRes.tested("getEvents()",xNR != null); } diff --git a/qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.java b/qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.java index 4dca661587c9..9a10e5697278 100644 --- a/qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.java +++ b/qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.java @@ -41,7 +41,7 @@ public class _XLinkTargetSupplier extends MultiMethodTest { */ public void _getLinks() { XNameAccess links = oObj.getLinks(); - String names[] = links.getElementNames(); + links.getElementNames(); tRes.tested("getLinks()", links != null); } diff --git a/qadevOOo/tests/java/ifc/drawing/_Text.java b/qadevOOo/tests/java/ifc/drawing/_Text.java index c8566ab48a92..2ed2be97f1ba 100644 --- a/qadevOOo/tests/java/ifc/drawing/_Text.java +++ b/qadevOOo/tests/java/ifc/drawing/_Text.java @@ -44,8 +44,7 @@ public class _Text extends MultiPropertyTest { } log.println("Trying to cast property 'NumberingRules' "+ "to XIndexReplace"); - XIndexReplace theRules = (XIndexReplace) - oObj.getPropertyValue( "NumberingRules" ); + oObj.getPropertyValue( "NumberingRules" ); bResult = true; } catch( Exception e ) { log.println("Error occurred while trying to get property"+ diff --git a/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java b/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java index 0ac972a9cafa..1433a7a749dd 100644 --- a/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java +++ b/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java @@ -63,7 +63,7 @@ public class _XValidatableFormComponent extends MultiMethodTest public void _getCurrentValue() { - Object cValue = oObj.getCurrentValue(); + oObj.getCurrentValue(); tRes.tested("getCurrentValue()", true); } @@ -77,21 +77,17 @@ public class _XValidatableFormComponent extends MultiMethodTest { requiredMethod("isValid()"); - boolean res = true; - try { oObj.removeFormComponentValidityListener(listener); } catch (com.sun.star.lang.NullPointerException e) { - res = false; e.printStackTrace(); } listenerCalled = false; changeAllProperties(); - res &= !listenerCalled; tRes.tested("removeFormComponentValidityListener()", true); } @@ -166,9 +162,6 @@ public class _XValidatableFormComponent extends MultiMethodTest ((property.Attributes & PropertyAttribute.READONLY) == 0); boolean isNotNull = ((property.Attributes & PropertyAttribute.MAYBEVOID) == 0); - boolean isBound = - ((property.Attributes & PropertyAttribute.BOUND) != 0); - //these have values that are interfaces we can't change if ( name.equals("TextUserDefinedAttributes") diff --git a/qadevOOo/tests/java/ifc/frame/_XDesktop.java b/qadevOOo/tests/java/ifc/frame/_XDesktop.java index 7e19e9dec6e8..84e8c1f7f44f 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDesktop.java +++ b/qadevOOo/tests/java/ifc/frame/_XDesktop.java @@ -57,9 +57,8 @@ public class _XDesktop extends MultiMethodTest { try { for (; xEnum.hasMoreElements();) { - XInterface xInt = null; try { - xInt = (XInterface) AnyConverter.toObject( + AnyConverter.toObject( new Type(XInterface.class), xEnum.nextElement()); } catch (com.sun.star.lang.IllegalArgumentException iae) { log.println("Can't convert any"); diff --git a/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java b/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java index 438c5690b169..dbe43e261675 100644 --- a/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java +++ b/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java @@ -84,7 +84,7 @@ public class _XLayoutManager extends MultiMethodTest { public void _getElement() { requiredMethod("createElement()"); - XUIElement xElement = oObj.getElement(sElementName); + oObj.getElement(sElementName); tRes.tested("getElement()", true); } @@ -109,22 +109,22 @@ public class _XLayoutManager extends MultiMethodTest { } public void _hideElement() { - boolean hidden = oObj.hideElement(sElementName); + oObj.hideElement(sElementName); tRes.tested("hideElement()", true); } public void _isElementDocked() { - boolean docked = oObj.isElementDocked(sElementName); + oObj.isElementDocked(sElementName); tRes.tested("isElementDocked()", true); } public void _isElementFloating() { - boolean docked = oObj.isElementFloating(sElementName); + oObj.isElementFloating(sElementName); tRes.tested("isElementFloating()", true); } public void _isElementVisible() { - boolean docked = oObj.isElementVisible(sElementName); + oObj.isElementVisible(sElementName); tRes.tested("isElementVisible()", true); } @@ -175,7 +175,7 @@ public class _XLayoutManager extends MultiMethodTest { public void _showElement() { requiredMethod("createElement()"); - boolean shown = oObj.showElement(sElementName); + oObj.showElement(sElementName); tRes.tested("showElement()", true); } diff --git a/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java b/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java index bb8db3113690..90d049cbd05f 100644 --- a/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java +++ b/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java @@ -50,18 +50,6 @@ public class _XDataOutputStream extends MultiMethodTest { public XDataOutputStream oObj = null; - // values that are written - private boolean writeBoolean; - private byte writeByte; - private char writeChar; - private double writeDouble; - private float writeFloat; - private long writeHyper; - private int writeLong; - private short writeShort; - private String writeUTF; - - /** * Retrieves object relation <code>'StreamData'</code> * and executes methods of interface depending of data in stream. @@ -81,31 +69,30 @@ public class _XDataOutputStream extends MultiMethodTest { dataElem = data.get(i) ; if (dataElem instanceof Boolean) { - writeBoolean = ((Boolean)dataElem).booleanValue(); + ((Boolean)dataElem).booleanValue(); } else if (dataElem instanceof Byte) { - writeByte = ((Byte)dataElem).byteValue(); + ((Byte)dataElem).byteValue(); } else if (dataElem instanceof Character) { - writeChar = ((Character)dataElem).charValue(); + ((Character)dataElem).charValue(); } else if (dataElem instanceof Short) { - writeShort = ((Short)dataElem).shortValue(); + ((Short)dataElem).shortValue(); } else if (dataElem instanceof Integer) { - writeLong = ((Integer)dataElem).intValue(); + ((Integer)dataElem).intValue(); } else if (dataElem instanceof Long) { - writeHyper = ((Long)dataElem).longValue(); + ((Long)dataElem).longValue(); } else if (dataElem instanceof Float) { - writeFloat = ((Float)dataElem).floatValue(); + ((Float)dataElem).floatValue(); } else if (dataElem instanceof Double) { - writeDouble = ((Double)dataElem).doubleValue(); + ((Double)dataElem).doubleValue(); } else if (dataElem instanceof String) { - writeUTF = (String)dataElem; } } } diff --git a/qadevOOo/tests/java/ifc/lang/_XComponent.java b/qadevOOo/tests/java/ifc/lang/_XComponent.java index 125df6012b75..7f4db951d86f 100644 --- a/qadevOOo/tests/java/ifc/lang/_XComponent.java +++ b/qadevOOo/tests/java/ifc/lang/_XComponent.java @@ -41,7 +41,6 @@ import com.sun.star.lang.XEventListener; public class _XComponent extends MultiMethodTest { public static XComponent oObj = null; - private XNameContainer xContainer = null; private XComponent altDispose = null; boolean listenerDisposed[] = new boolean[2]; diff --git a/qadevOOo/tests/java/ifc/reflection/_XIdlReflection.java b/qadevOOo/tests/java/ifc/reflection/_XIdlReflection.java index 7087e4807fc8..306c25883fe6 100644 --- a/qadevOOo/tests/java/ifc/reflection/_XIdlReflection.java +++ b/qadevOOo/tests/java/ifc/reflection/_XIdlReflection.java @@ -69,7 +69,6 @@ public class _XIdlReflection extends MultiMethodTest{ * returned value isn't null and no exceptions were thrown. <p> */ public void _getType() { - boolean result = true; Object obj = null; try { @@ -82,7 +81,6 @@ public class _XIdlReflection extends MultiMethodTest{ } if (obj == null) { - result = false; log.println("Object wasn't created !"); tRes.tested("getType()", false); } diff --git a/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java b/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java index 1958836f924b..8780fe274aa5 100644 --- a/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java +++ b/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java @@ -159,8 +159,6 @@ public class _XImplementationRegistration extends MultiMethodTest { * </ul> */ public void _revokeImplementation() throws RuntimeException{ - boolean result = false ; - requiredMethod("registerImplementation()") ; executeMethod("getImplementations()") ; @@ -170,9 +168,7 @@ public class _XImplementationRegistration extends MultiMethodTest { RegistryTools.printRegistryInfo(reg, log) ; try { - String[] subKeys = reg.getRootKey().getKeyNames() ; - - result = subKeys == null || subKeys.length == 0 ; + reg.getRootKey().getKeyNames(); } catch (com.sun.star.registry.InvalidRegistryException e) { log.println("!!! Exception retrieving keys from registry :") ; e.printStackTrace(log); diff --git a/qadevOOo/tests/java/ifc/sdb/_DataAccessDescriptor.java b/qadevOOo/tests/java/ifc/sdb/_DataAccessDescriptor.java index f8f2d94a5b43..fda6ad192669 100644 --- a/qadevOOo/tests/java/ifc/sdb/_DataAccessDescriptor.java +++ b/qadevOOo/tests/java/ifc/sdb/_DataAccessDescriptor.java @@ -33,7 +33,7 @@ public class _DataAccessDescriptor extends MultiPropertyTest { try{ log.println("try to get value from property..."); - XResultSet oldValue = UnoRuntime.queryInterface(XResultSet.class,oObj.getPropertyValue(propName)); + UnoRuntime.queryInterface(XResultSet.class,oObj.getPropertyValue(propName)); log.println("try to get value from object relation..."); XResultSet newValue = UnoRuntime.queryInterface(XResultSet.class,tEnv.getObjRelation("DataAccessDescriptor.XResultSet")); @@ -76,7 +76,7 @@ public class _DataAccessDescriptor extends MultiPropertyTest { try{ log.println("try to get value from property..."); - XConnection oldValue = UnoRuntime.queryInterface(XConnection.class,oObj.getPropertyValue(propName)); + UnoRuntime.queryInterface(XConnection.class,oObj.getPropertyValue(propName)); log.println("try to get value from object relation..."); XConnection newValue = UnoRuntime.queryInterface(XConnection.class,tEnv.getObjRelation("DataAccessDescriptor.XConnection")); diff --git a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java index 8ba1702e3b44..838370ea3215 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java +++ b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java @@ -52,8 +52,6 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { // oObj filled by MultiMethodTest public XSingleSelectQueryComposer oObj = null ; - private String queryString = "SELECT * FROM \"biblio\""; - private XSingleSelectQueryAnalyzer xQueryAna = null; private XPropertySet xProp = null; diff --git a/qadevOOo/tests/java/ifc/sdbc/_XResultSet.java b/qadevOOo/tests/java/ifc/sdbc/_XResultSet.java index c405a96fa13f..279efc3e98bc 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XResultSet.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XResultSet.java @@ -418,7 +418,7 @@ public class _XResultSet extends MultiMethodTest { public void _rowUpdated() { try { - boolean res = oObj.rowUpdated() ; + oObj.rowUpdated(); tRes.tested("rowUpdated()", true) ; } catch (SQLException e) { log.println("Exception occurred :") ; @@ -433,7 +433,7 @@ public class _XResultSet extends MultiMethodTest { */ public void _rowInserted() { try { - boolean res = oObj.rowInserted() ; + oObj.rowInserted(); tRes.tested("rowInserted()", true) ; } catch (SQLException e) { log.println("Exception occurred :") ; @@ -448,7 +448,7 @@ public class _XResultSet extends MultiMethodTest { */ public void _rowDeleted() { try { - boolean res = oObj.rowDeleted() ; + oObj.rowDeleted(); tRes.tested("rowDeleted()", true) ; } catch (SQLException e) { log.println("Exception occurred :") ; diff --git a/qadevOOo/tests/java/ifc/sdbc/_XRow.java b/qadevOOo/tests/java/ifc/sdbc/_XRow.java index fa1d1b89fda0..a707bbe34cb2 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XRow.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XRow.java @@ -141,9 +141,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - String getStr = oObj.getString(col) ; - //result &= ((String)data.get(col - 1)).equals(getStr) ; - //notNullRes &= !oObj.wasNull() ; + oObj.getString(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -163,9 +161,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - boolean getVal = oObj.getBoolean(col) ; - //result &= ((Boolean)data.get(col - 1)).booleanValue() == getVal ; - //notNullRes &= !oObj.wasNull() ; + oObj.getBoolean(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -185,9 +181,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - byte getVal = oObj.getByte(col) ; - //result &= ((Byte)data.get(col - 1)).byteValue() == getVal ; - //notNullRes &= !oObj.wasNull() ; + oObj.getByte(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -207,9 +201,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - short getVal = oObj.getShort(col) ; - //result &= ((Short)data.get(col - 1)).shortValue() == getVal ; - //notNullRes &= !oObj.wasNull() ; + oObj.getShort(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -229,7 +221,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - int getVal = oObj.getInt(col) ; + oObj.getInt(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -249,7 +241,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - long getVal = oObj.getLong(col) ; + oObj.getLong(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -269,7 +261,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - float getVal = oObj.getFloat(col) ; + oObj.getFloat(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -289,7 +281,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - double getVal = oObj.getDouble(col) ; + oObj.getDouble(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -309,7 +301,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - byte[] getVal = oObj.getBytes(col) ; + oObj.getBytes(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -329,7 +321,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - Date getVal = oObj.getDate(col) ; + oObj.getDate(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -349,7 +341,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - Time getVal = oObj.getTime(col) ; + oObj.getTime(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -369,7 +361,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - DateTime getVal = oObj.getTimestamp(col) ; + oObj.getTimestamp(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -389,7 +381,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - XInputStream getVal = oObj.getBinaryStream(col) ; + oObj.getBinaryStream(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -409,7 +401,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - XInputStream getVal = oObj.getCharacterStream(col) ; + oObj.getCharacterStream(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -429,7 +421,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - Object getVal = oObj.getObject(col, null) ; + oObj.getObject(col, null); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -449,7 +441,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - XRef getVal = oObj.getRef(col) ; + oObj.getRef(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -469,7 +461,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - XBlob getVal = oObj.getBlob(col) ; + oObj.getBlob(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -489,7 +481,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - XClob getVal = oObj.getClob(col) ; + oObj.getClob(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; @@ -509,7 +501,7 @@ public class _XRow extends MultiMethodTest { if (col < 0) log.println("Type not found in relation: not tested"); else { try { - XArray getVal = oObj.getArray(col) ; + oObj.getArray(col); } catch (SQLException e) { log.println("Unexpected SQL exception:") ; log.println(e) ; diff --git a/qadevOOo/tests/java/ifc/sdbc/_XRowSet.java b/qadevOOo/tests/java/ifc/sdbc/_XRowSet.java index e0520bde061e..0cc5d43b087f 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XRowSet.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XRowSet.java @@ -99,13 +99,10 @@ public class _XRowSet extends MultiMethodTest { public void _execute() { requiredMethod("addRowSetListener()"); listener.reset(); - boolean result = true ; - try { oObj.execute() ; } catch (SQLException e) { log.println("Exception occurred :" + e) ; - result = false ; } tRes.tested("execute()", listener.rowSetChanged); diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java b/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java index 3a14ed43e03f..e6aad78638a6 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java @@ -139,26 +139,19 @@ public class _XDataDefinitionSupplier extends MultiMethodTest { * exception was thrown. */ public void _getDataDefinitionByURL() { - boolean bRes = false; - XTablesSupplier xTS = null; - try { log.println("getDataDefinitionByURL('" + url + "')"); - xTS = oObj.getDataDefinitionByURL(url, info); - bRes = xTS != null; + oObj.getDataDefinitionByURL(url, info); } catch (com.sun.star.sdbc.SQLException e) { log.println("Unexpected exception: " + e); - bRes = false; } try { log.println("getDataDefinitionByURL('" + wrongUrl + "')"); - xTS = oObj.getDataDefinitionByURL(wrongUrl, info); + oObj.getDataDefinitionByURL(wrongUrl, info); log.println("Exception was expected"); - bRes = false; } catch (com.sun.star.sdbc.SQLException e) { log.println("Expected exception"); - bRes &= true; } tRes.tested("getDataDefinitionByURL()", true); diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java b/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java index ca61c91d2977..79b541100130 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java @@ -42,8 +42,6 @@ public class _XTablesSupplier extends MultiMethodTest { * <code>XNameAccess</code> object, FAILED otherwise. */ public void _getTables() { - boolean result = true ; - XNameAccess tabs = oObj.getTables() ; diff --git a/qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor.java index db57e6cd4931..c4a737a700f5 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor.java @@ -79,7 +79,6 @@ public class _XConsolidationDescriptor extends MultiMethodTest { */ public void _getSources() { CRaddr = oObj.getSources(); - int wiev = CRaddr.length; tRes.tested("getSources()", true); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java index da56fbb3071c..d7c513c99088 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java @@ -280,7 +280,7 @@ public class _XDataPilotTable2 extends MultiMethodTest // out-of-bound condition is undefined. try { - CellRangeAddress rangeOutOfBound = xDPTab2.getOutputRangeByType(-1); + xDPTab2.getOutputRangeByType(-1); log.println("exception not raised"); break; } @@ -291,7 +291,7 @@ public class _XDataPilotTable2 extends MultiMethodTest try { - CellRangeAddress rangeOutOfBound = xDPTab2.getOutputRangeByType(100); + xDPTab2.getOutputRangeByType(100); log.println("exception not raised"); break; } diff --git a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java index 9141741aca89..9a838ecef630 100644 --- a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java +++ b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java @@ -215,7 +215,6 @@ public class _CharacterProperties extends MultiPropertyTest { if (oPara == null) { testProperty("CharStyleNames", StylesTester) ; } else { - String[] newNames = {"Standard"}; changeProp((XPropertySet) oPara, (XPropertySet) oPort,"CharStyleNames",new String[] {"Standard"}); } @@ -254,7 +253,7 @@ public class _CharacterProperties extends MultiPropertyTest { changeProp((XPropertySet) oPara, (XPropertySet) oPort,"RubyAdjust", aShort); } - Short aShort = new Short((short) 1); + new Short((short) 1); } /** @@ -447,14 +446,14 @@ public class _CharacterProperties extends MultiPropertyTest { attr.Value = "true"; uda.insertByName("Cellprop:has-first-alien-attribute", attr); - String[] els = uda.getElementNames(); + uda.getElementNames(); oObj.setPropertyValue("TextUserDefinedAttributes", uda); uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), oObj.getPropertyValue("TextUserDefinedAttributes")); - els = uda.getElementNames(); + uda.getElementNames(); - Object obj = uda.getByName("Cellprop:has-first-alien-attribute"); + uda.getByName("Cellprop:has-first-alien-attribute"); res = true; } catch (com.sun.star.beans.UnknownPropertyException upe) { if (isOptional("TextUserDefinedAttributes")) { diff --git a/qadevOOo/tests/java/ifc/style/_PageProperties.java b/qadevOOo/tests/java/ifc/style/_PageProperties.java index a47e46966151..929c9ca2b893 100644 --- a/qadevOOo/tests/java/ifc/style/_PageProperties.java +++ b/qadevOOo/tests/java/ifc/style/_PageProperties.java @@ -89,13 +89,13 @@ public class _PageProperties extends MultiPropertyTest { attr.Type="CDATA"; attr.Value="true"; uda.insertByName("Cellprop:has-first-alien-attribute",attr); - String[] els = uda.getElementNames(); + uda.getElementNames(); oObj.setPropertyValue("UserDefinedAttributes",uda); uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), oObj.getPropertyValue("UserDefinedAttributes")); - els = uda.getElementNames(); - Object obj = uda.getByName("Cellprop:has-first-alien-attribute"); + uda.getElementNames(); + uda.getByName("Cellprop:has-first-alien-attribute"); res = true; } catch (com.sun.star.beans.UnknownPropertyException upe) { log.println("Don't know the Property 'UserDefinedAttributes'"); diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java index 4abf8c93c95d..7be6f0ecb4be 100644 --- a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java +++ b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java @@ -410,14 +410,14 @@ public class _ParagraphProperties extends MultiPropertyTest { attr.Value = "true"; uda.insertByName("Cellprop:has-first-alien-attribute", attr); - String[] els = uda.getElementNames(); + uda.getElementNames(); oObj.setPropertyValue("ParaUserDefinedAttributes", uda); uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), oObj.getPropertyValue("ParaUserDefinedAttributes")); - els = uda.getElementNames(); + uda.getElementNames(); - Object obj = uda.getByName("Cellprop:has-first-alien-attribute"); + uda.getByName("Cellprop:has-first-alien-attribute"); res = true; } catch (com.sun.star.beans.UnknownPropertyException upe) { if (isOptional("ParaUserDefinedAttributes")) { diff --git a/qadevOOo/tests/java/ifc/table/_CellProperties.java b/qadevOOo/tests/java/ifc/table/_CellProperties.java index d8606bb0d5a7..ce45507cb27d 100644 --- a/qadevOOo/tests/java/ifc/table/_CellProperties.java +++ b/qadevOOo/tests/java/ifc/table/_CellProperties.java @@ -73,13 +73,13 @@ public class _CellProperties extends MultiPropertyTest { attr.Type="CDATA"; attr.Value="true"; uda.insertByName("Cellprop:has-first-alien-attribute",attr); - String[] els = uda.getElementNames(); + uda.getElementNames(); oObj.setPropertyValue("UserDefinedAttributes",uda); uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), oObj.getPropertyValue("UserDefinedAttributes")); - els = uda.getElementNames(); - Object obj = uda.getByName("Cellprop:has-first-alien-attribute"); + uda.getElementNames(); + uda.getByName("Cellprop:has-first-alien-attribute"); res = true; } catch (com.sun.star.beans.UnknownPropertyException upe) { log.println("Don't know the Property 'UserDefinedAttributes'"); diff --git a/qadevOOo/tests/java/ifc/table/_XCell.java b/qadevOOo/tests/java/ifc/table/_XCell.java index a5ad522cbe60..faeb61d09dbc 100644 --- a/qadevOOo/tests/java/ifc/table/_XCell.java +++ b/qadevOOo/tests/java/ifc/table/_XCell.java @@ -114,10 +114,9 @@ public class _XCell extends MultiMethodTest { */ public void _getValue() { boolean result = true; - double value = 0; log.println("getValue() ..."); - value = oObj.getValue(); + oObj.getValue(); tRes.tested("getValue()",result); } // end getValue() diff --git a/qadevOOo/tests/java/ifc/table/_XCellCursor.java b/qadevOOo/tests/java/ifc/table/_XCellCursor.java index 142c2def170c..ae278f3a0c8a 100644 --- a/qadevOOo/tests/java/ifc/table/_XCellCursor.java +++ b/qadevOOo/tests/java/ifc/table/_XCellCursor.java @@ -67,24 +67,16 @@ public class _XCellCursor extends MultiMethodTest { */ public void _gotoNext(){ boolean bResult = false; - int startCol, endCol, startRow, endRow = 0; - int startCol2, endCol2, startRow2, endRow2 = 0; + int startCol; + int startCol2; XCellRangeAddressable oRange = UnoRuntime.queryInterface(XCellRangeAddressable.class, oObj); CellRangeAddress oAddr = oRange.getRangeAddress(); - startRow = oAddr.StartRow; startCol = oAddr.StartColumn; - endRow = oAddr.EndRow; - endCol = oAddr.EndColumn; - oObj.gotoNext(); oAddr = oRange.getRangeAddress(); - startRow2 = oAddr.StartRow; startCol2 = oAddr.StartColumn; - endRow2 = oAddr.EndRow; - endCol2 = oAddr.EndColumn; - if (!(startCol == startCol2)){ bResult = true; } @@ -101,23 +93,18 @@ public class _XCellCursor extends MultiMethodTest { */ public void _gotoOffset(){ boolean bResult = false; - int startCol, endCol, startRow, endRow = 0; - int startCol2, endCol2, startRow2, endRow2 = 0; + int startCol, startRow; + int startCol2, startRow2; XCellRangeAddressable oRange = UnoRuntime.queryInterface(XCellRangeAddressable.class, oObj); CellRangeAddress oAddr = oRange.getRangeAddress(); startRow = oAddr.StartRow; startCol = oAddr.StartColumn; - endRow = oAddr.EndRow; - endCol = oAddr.EndColumn; - oObj.gotoOffset(4,4); oAddr = oRange.getRangeAddress(); startRow2 = oAddr.StartRow; startCol2 = oAddr.StartColumn; - endRow2 = oAddr.EndRow; - endCol2 = oAddr.EndColumn; if (!(startCol == startCol2) || (startRow == startRow2)){ bResult = true; } @@ -134,24 +121,16 @@ public class _XCellCursor extends MultiMethodTest { */ public void _gotoPrevious(){ boolean bResult = false; - int startCol, endCol, startRow, endRow = 0; - int startCol2, endCol2, startRow2, endRow2 = 0; + int startCol; + int startCol2; XCellRangeAddressable oRange = UnoRuntime.queryInterface(XCellRangeAddressable.class, oObj); CellRangeAddress oAddr = oRange.getRangeAddress(); - startRow = oAddr.StartRow; startCol = oAddr.StartColumn; - endRow = oAddr.EndRow; - endCol = oAddr.EndColumn; - oObj.gotoPrevious(); oAddr = oRange.getRangeAddress(); - startRow2 = oAddr.StartRow; startCol2 = oAddr.StartColumn; - endRow2 = oAddr.EndRow; - endCol2 = oAddr.EndColumn; - if (!(startCol == startCol2)){ bResult = true; } diff --git a/qadevOOo/tests/java/ifc/table/_XTableRows.java b/qadevOOo/tests/java/ifc/table/_XTableRows.java index 354fde9d9abf..8acb33a5a8f4 100644 --- a/qadevOOo/tests/java/ifc/table/_XTableRows.java +++ b/qadevOOo/tests/java/ifc/table/_XTableRows.java @@ -62,7 +62,7 @@ public class _XTableRows extends MultiMethodTest { requiredMethod("removeByIndex()"); - int origCnt = oObj.getCount(); + oObj.getCount(); log.println("Inserting row before first row"); oObj.insertByIndex(0,1); result &= checkCell(1,15); diff --git a/qadevOOo/tests/java/ifc/text/_MailMerge.java b/qadevOOo/tests/java/ifc/text/_MailMerge.java index f9d4c8d6b741..98b2ec3cac0e 100644 --- a/qadevOOo/tests/java/ifc/text/_MailMerge.java +++ b/qadevOOo/tests/java/ifc/text/_MailMerge.java @@ -58,7 +58,7 @@ public class _MailMerge extends MultiPropertyTest { try{ log.println("try to get value from property..."); - XResultSet oldValue = UnoRuntime.queryInterface(XResultSet.class,oObj.getPropertyValue(propName)); + UnoRuntime.queryInterface(XResultSet.class,oObj.getPropertyValue(propName)); log.println("try to get value from object relation..."); XResultSet newValue = UnoRuntime.queryInterface(XResultSet.class,tEnv.getObjRelation("MailMerge.XResultSet")); @@ -102,7 +102,7 @@ public class _MailMerge extends MultiPropertyTest { try{ log.println("try to get value from property..."); - XConnection oldValue = UnoRuntime.queryInterface(XConnection.class,oObj.getPropertyValue(propName)); + UnoRuntime.queryInterface(XConnection.class,oObj.getPropertyValue(propName)); log.println("try to get value from object relation..."); XConnection newValue = UnoRuntime.queryInterface(XConnection.class,tEnv.getObjRelation("MailMerge.XConnection")); diff --git a/qadevOOo/tests/java/ifc/text/_NumberingLevel.java b/qadevOOo/tests/java/ifc/text/_NumberingLevel.java index 2355bdc90994..86a20de32633 100644 --- a/qadevOOo/tests/java/ifc/text/_NumberingLevel.java +++ b/qadevOOo/tests/java/ifc/text/_NumberingLevel.java @@ -64,7 +64,6 @@ import com.sun.star.beans.PropertyValue; */ public class _NumberingLevel { - private static TestParameters tParam = null; private static HashMap<String, Boolean> NumberingLevel = new HashMap<String,Boolean>(); private static PropertyValue[] PropertyArray = null; private static LogWriter log = null; @@ -78,7 +77,6 @@ public class _NumberingLevel { */ public _NumberingLevel(LogWriter log, TestParameters tParam, PropertyValue[] propertyValues){ - this.tParam = tParam; this.PropertyArray = propertyValues; this.log = log; diff --git a/qadevOOo/tests/java/ifc/text/_XAutoTextGroup.java b/qadevOOo/tests/java/ifc/text/_XAutoTextGroup.java index 1dcd91e32a0a..6d42a7363564 100644 --- a/qadevOOo/tests/java/ifc/text/_XAutoTextGroup.java +++ b/qadevOOo/tests/java/ifc/text/_XAutoTextGroup.java @@ -195,12 +195,12 @@ public class _XAutoTextGroup extends MultiMethodTest { boolean result = false; try { - String[] tit = oObj.getTitles() ; - String[] names = oObj.getElementNames() ; + oObj.getTitles(); + oObj.getElementNames(); oObj.insertNewByName(str,"For " + str,oRange); oObj.insertNewByName(str + "dup","For " + str,oRange); - tit = oObj.getTitles() ; - names = oObj.getElementNames() ; + oObj.getTitles(); + oObj.getElementNames(); result = true; } catch (com.sun.star.container.ElementExistException e) { log.println("Unexpected exception occurred :") ; diff --git a/qadevOOo/tests/java/ifc/text/_XTextFieldsSupplier.java b/qadevOOo/tests/java/ifc/text/_XTextFieldsSupplier.java index e8fe1dc78e61..3b4baa5a71bd 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextFieldsSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XTextFieldsSupplier.java @@ -63,7 +63,6 @@ public class _XTextFieldsSupplier extends MultiMethodTest { XSpreadsheetDocument xSheetDoc = (XSpreadsheetDocument)tEnv.getObjRelation("SPREADSHEET"); - XInterface oObj = null; XText oText = null; XTextContent oContent = null; XInterface aField = null; @@ -80,7 +79,7 @@ public class _XTextFieldsSupplier extends MultiMethodTest { XSpreadsheets oSheets = xSheetDoc.getSheets() ; XIndexAccess oIndexSheets = UnoRuntime.queryInterface(XIndexAccess.class, oSheets); - XSpreadsheet oSheet = (XSpreadsheet) AnyConverter.toObject( + AnyConverter.toObject( new Type(XSpreadsheet.class),oIndexSheets.getByIndex(0)); String[] services = _oMSF.getAvailableServiceNames(); @@ -135,7 +134,7 @@ public class _XTextFieldsSupplier extends MultiMethodTest { XEnumeration xEnum = xEnumAccess.createEnumeration(); while(xEnum != null && xEnum.hasMoreElements()) { try { - Object o = xEnum.nextElement(); + xEnum.nextElement(); } catch(com.sun.star.container.NoSuchElementException e) { setMethodFalse("getTextFields()", e); diff --git a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor2.java b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor2.java index 86b9b857c0e8..4f1a08592da8 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor2.java +++ b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor2.java @@ -32,7 +32,7 @@ public class _XCommandProcessor2 extends MultiMethodTest { public void _releaseCommandIdentifier() { int id = oObj.createCommandIdentifier(); oObj.releaseCommandIdentifier(id); - int id2 = oObj.createCommandIdentifier(); + oObj.createCommandIdentifier(); System.out.println("id: "+id); System.out.println("id2: "+id); tRes.tested("releaseCommandIdentifier()", true); diff --git a/qadevOOo/tests/java/ifc/ui/_XUIConfiguration.java b/qadevOOo/tests/java/ifc/ui/_XUIConfiguration.java index 38f1046e954d..cae741cec099 100644 --- a/qadevOOo/tests/java/ifc/ui/_XUIConfiguration.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIConfiguration.java @@ -59,7 +59,6 @@ public class _XUIConfiguration extends MultiMethodTest { public void before() { xListener = (XUIConfigurationListenerImpl)tEnv.getObjRelation( "XUIConfiguration.XUIConfigurationListenerImpl"); - XUIConfigurationListener l; } /** diff --git a/qadevOOo/tests/java/ifc/ui/_XUIElementFactoryRegistration.java b/qadevOOo/tests/java/ifc/ui/_XUIElementFactoryRegistration.java index 6d6a94ad8236..e2540e49dd4f 100644 --- a/qadevOOo/tests/java/ifc/ui/_XUIElementFactoryRegistration.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIElementFactoryRegistration.java @@ -61,12 +61,10 @@ public class _XUIElementFactoryRegistration extends MultiMethodTest { public void _deregisterFactory() { executeMethod("getRegisteredFactory()"); executeMethod("getFactory()"); - boolean result = true; try { oObj.deregisterFactory("private:resource/menubar/menubar", "MyOwnMenubar", ""); } catch(com.sun.star.container.NoSuchElementException e) { - result = false; e.printStackTrace(log); } tRes.tested("deregisterFactory()", true); diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XControlInformation.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XControlInformation.java index 709666b6113c..d9898c976e5d 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XControlInformation.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XControlInformation.java @@ -96,8 +96,6 @@ public class _XControlInformation extends MultiMethodTest { public void _getSupportedControlProperties() { requiredMethod("getSupportedControls()") ; - boolean result = true; - supProperties = new String[supControls.length][]; for (int i = 0; i < supControls.length; i++) { log.println("Getting proeprties for control: " + supControls[i]); @@ -106,14 +104,11 @@ public class _XControlInformation extends MultiMethodTest { oObj.getSupportedControlProperties(supControls[i]); } catch (com.sun.star.lang.IllegalArgumentException e) { log.println("Unexpected exception:" + e); - result = false ; } - result &= supProperties[i] != null; } try { - Object prop = oObj.getSupportedControlProperties("NoSuchControl") ; - result &= prop == null; + oObj.getSupportedControlProperties("NoSuchControl"); } catch (com.sun.star.lang.IllegalArgumentException e) { log.println("Expected exception getting properties " + "for wrong control:" + e); diff --git a/qadevOOo/tests/java/ifc/uno/_XComponentContext.java b/qadevOOo/tests/java/ifc/uno/_XComponentContext.java index a4fd9955aef8..65363ac1bce8 100644 --- a/qadevOOo/tests/java/ifc/uno/_XComponentContext.java +++ b/qadevOOo/tests/java/ifc/uno/_XComponentContext.java @@ -63,8 +63,8 @@ public class _XComponentContext extends MultiMethodTest { byValue = UnoRuntime.queryInterface( XMultiComponentFactory.class, value); - String[] vNames = byValue.getAvailableServiceNames(); - String[] dNames = directly.getAvailableServiceNames(); + byValue.getAvailableServiceNames(); + directly.getAvailableServiceNames(); boolean res = ValueComparer.equalValue(byValue, directly); tRes.tested("getValueByName()", res); diff --git a/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java b/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java index 8141a48c563d..a19ecbaf467c 100644 --- a/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java +++ b/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java @@ -39,7 +39,7 @@ public class _XStringSubstitution extends MultiMethodTest { try { log.println("try to get a invalid variable..."); String toCheck = "$(ThisVariableShouldNoExist)"; - String eString = oObj.getSubstituteVariableValue(toCheck); + oObj.getSubstituteVariableValue(toCheck); log.println("$(ThisVariableShouldNoExist) should not exist"); tRes.tested("getSubstituteVariableValue()",false); @@ -66,7 +66,7 @@ public class _XStringSubstitution extends MultiMethodTest { try { log.println("try to get a invalid variable..."); String toCheck = "$(ThisVariableShouldNoExist)"; - String eString = oObj.substituteVariables(toCheck,true); + oObj.substituteVariables(toCheck,true); log.println("$(ThisVariableShouldNoExist) should not exist"); tRes.tested("substituteVariables()",false); diff --git a/qadevOOo/tests/java/ifc/xml/_UserDefinedAttributeSupplier.java b/qadevOOo/tests/java/ifc/xml/_UserDefinedAttributeSupplier.java index e3b9878fb3cf..3e46223931c8 100644 --- a/qadevOOo/tests/java/ifc/xml/_UserDefinedAttributeSupplier.java +++ b/qadevOOo/tests/java/ifc/xml/_UserDefinedAttributeSupplier.java @@ -36,13 +36,13 @@ public class _UserDefinedAttributeSupplier extends lib.MultiPropertyTest { attr.Type="CDATA"; attr.Value="true"; uda.insertByName("Chartprop:has-first-alien-attribute",attr); - String[] els = uda.getElementNames(); + uda.getElementNames(); oObj.setPropertyValue("UserDefinedAttributes",uda); uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), oObj.getPropertyValue("UserDefinedAttributes")); - els = uda.getElementNames(); - Object obj = uda.getByName("Chartprop:has-first-alien-attribute"); + uda.getElementNames(); + uda.getByName("Chartprop:has-first-alien-attribute"); res = true; } catch (com.sun.star.beans.UnknownPropertyException upe) { log.println("Don't know the Property 'UserDefinedAttributes'"); diff --git a/qadevOOo/tests/java/ifc/xml/sax/_XDocumentHandler.java b/qadevOOo/tests/java/ifc/xml/sax/_XDocumentHandler.java index 63e2f864e272..649f5dfa372d 100644 --- a/qadevOOo/tests/java/ifc/xml/sax/_XDocumentHandler.java +++ b/qadevOOo/tests/java/ifc/xml/sax/_XDocumentHandler.java @@ -76,30 +76,24 @@ import com.sun.star.xml.sax.XLocator; public class _XDocumentHandler extends MultiMethodTest { private static class DocumentLocator implements XLocator { - public boolean aMethodCalled = false ; - private PrintWriter log = null ; public DocumentLocator(PrintWriter log) { this.log = log ; } public int getColumnNumber() { log.println("getColumnNumber() method called.") ; - aMethodCalled = true ; return 10 ; } public int getLineNumber() { log.println("getLineNumber() method called.") ; - aMethodCalled = true ; return 9 ; } public String getPublicId() { log.println("getPublicId() method called.") ; - aMethodCalled = true ; return "file://d:/file.txt"; } public String getSystemId() { log.println("getSystemId() method called.") ; - aMethodCalled = true ; return "system"; } } diff --git a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java index d9f10f5192c7..0c88f0a28355 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java @@ -82,9 +82,6 @@ public class CachedContentResultSetFactory extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - Object relationContainer = null ; - - try { oInterface = xMSF.createInstance ( "com.sun.star.ucb.CachedContentResultSetFactory" ); diff --git a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java index e084ab9c1284..24d151c5be9f 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java @@ -80,9 +80,6 @@ public class CachedContentResultSetStubFactory extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - Object relationContainer = null ; - - try { oInterface = xMSF.createInstance ( "com.sun.star.ucb.CachedContentResultSetStubFactory" ); diff --git a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java index 04deb7697ea2..c092967b70d5 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java @@ -80,9 +80,6 @@ public class CachedDynamicResultSetFactory extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - Object relationContainer = null ; - - try { oInterface = xMSF.createInstance ( "com.sun.star.ucb.CachedDynamicResultSetFactory" ); diff --git a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java index 0ab63dcd48a0..1f29cf1556e6 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java @@ -77,9 +77,6 @@ public class CachedDynamicResultSetStubFactory extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - Object relationContainer = null ; - - try { oInterface = xMSF.createInstance ( "com.sun.star.ucb.CachedDynamicResultSetStubFactory" ); diff --git a/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java index ec2bcc3ed056..425866018748 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java @@ -97,21 +97,19 @@ public class ConnectionLineAccessibility extends TestCase { XInterface oObj = null; - Object oDBContext = null; Object oDBSource = null; Object newQuery = null; - Object toolkit = null; XStorable store = null; try { - oDBContext = ((XMultiServiceFactory) Param.getMSF()) + ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.DatabaseContext"); oDBSource = ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.DataSource"); newQuery = ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.QueryDefinition"); - toolkit = ((XMultiServiceFactory) Param.getMSF()) + ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.awt.Toolkit"); } catch (com.sun.star.uno.Exception e) diff --git a/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java index 911abfa5db15..9051c2c5ecc8 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java @@ -96,21 +96,19 @@ public class JoinViewAccessibility extends TestCase { { XInterface oObj = null; - Object oDBContext = null; Object oDBSource = null; Object newQuery = null; - Object toolkit = null; XStorable store = null; try { - oDBContext = ((XMultiServiceFactory) Param.getMSF ()) + ((XMultiServiceFactory) Param.getMSF ()) .createInstance ("com.sun.star.sdb.DatabaseContext"); oDBSource = ((XMultiServiceFactory) Param.getMSF ()) .createInstance ("com.sun.star.sdb.DataSource"); newQuery = ((XMultiServiceFactory) Param.getMSF ()) .createInstance ("com.sun.star.sdb.QueryDefinition"); - toolkit = ((XMultiServiceFactory) Param.getMSF ()) + ((XMultiServiceFactory) Param.getMSF ()) .createInstance ("com.sun.star.awt.Toolkit"); } catch (com.sun.star.uno.Exception e) { diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java index 2ba6a2cd94a9..1526dc182e7f 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java @@ -156,16 +156,13 @@ public class OQueryDesign extends TestCase { } catch ( com.sun.star.lang.WrappedTargetException e){ throw new StatusException("could not get '" + sDataSourceName + "'" , e) ; } - XDocumentDataSource xDDS = UnoRuntime.queryInterface(XDocumentDataSource.class, oDataSource); -// XModel xMod = (XModel) UnoRuntime.queryInterface(XModel.class, xDDS.getDatabaseDocument ()); + UnoRuntime.queryInterface(XDocumentDataSource.class, oDataSource); // Frame = xMod.getCurrentController().getFrame(); xFrame = DesktopTools.getCurrentFrame(xMSF); - // get an instance of Frame - Object oFrame = null; - SOfficeFactory SOF = null; + SOfficeFactory SOF = null; SOF = SOfficeFactory.getFactory( xMSF ); try { diff --git a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java index 5246edd5a72b..3ab9edd40210 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java @@ -578,12 +578,10 @@ public class ORowSet extends TestCase { public void handle(XInteractionRequest xInteractionRequest) { log.println("### _XCompletedExecution.InteractionHandlerImpl: handle called."); - ParametersRequest req = null; boolean abort = false; Object o = xInteractionRequest.getRequest(); if (o instanceof ParametersRequest) { - req = (ParametersRequest)o; } else if (o instanceof AuthenticationRequest) { log.println("### The request in XCompletedExecution is of type 'AuthenticationRequest'"); diff --git a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java index ef07416e243d..a0b2b5d4760d 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java @@ -132,11 +132,6 @@ import com.sun.star.uno.XInterface; */ public class OSingleSelectQueryComposer extends TestCase { - private static int uniqueSuffix = 0 ; - private DBTools dbTools = null ; - private static String origDB = null ; - private PrintWriter log = null ; - private static String tmpDir = null ; String tableName = null; DBTools.DataSourceInfo srcInf = null; boolean isMySQLDB = false; @@ -172,9 +167,6 @@ public class OSingleSelectQueryComposer extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = null ; - boolean envCreatedOK = false ; - - try { xMSF = (XMultiServiceFactory)Param.getMSF(); @@ -250,8 +242,7 @@ public class OSingleSelectQueryComposer extends TestCase { tEnv.addObjRelation("xProp", xCol); tEnv.addObjRelation("colName", xCols.getElementNames()[0]); - envCreatedOK = true ; - return tEnv; + return tEnv; } catch(com.sun.star.uno.Exception e) { log.println("Can't create object" ); diff --git a/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java index 4ea9fe8610db..5887999090df 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java @@ -97,20 +97,18 @@ public class TableWindowAccessibility extends TestCase { PrintWriter log) { XInterface oObj = null; - Object oDBContext = null; Object oDBSource = null; Object newQuery = null; - Object toolkit = null; XStorable store = null; try { - oDBContext = ((XMultiServiceFactory) Param.getMSF()) + ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.DatabaseContext"); oDBSource = ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.DataSource"); newQuery = ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.QueryDefinition"); - toolkit = ((XMultiServiceFactory) Param.getMSF()) + ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.awt.Toolkit"); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); diff --git a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java index 896c590af483..3d84958bfbbe 100644 --- a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java +++ b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java @@ -871,8 +871,7 @@ public class ODatabaseForm extends TestCase { int count = params.getCount(); try { for(int i=0; i<count; i++) { - Object aObject = params.getByIndex(i); - Any any = (Any)aObject; + params.getByIndex(i); log.println("### _XCompletedExecution.InteractionHandlerImpl: Parameter "+i+": "+params.getByIndex(i)); XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class, params.getByIndex(i)); log.println("### _XCompletedExecution.InteractionHandlerImpl: Parameter Name: '"+xProp.getPropertyValue("Name") + "' is set to Value '1'"); diff --git a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java index 84680fa1878a..1678ae0a5362 100644 --- a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java +++ b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java @@ -319,7 +319,6 @@ class OGridControlModelold extends TestCase { XPropertySet aControl2 = null; XPropertySet aControl3 = null; XPropertySet aControl4 = null; - XPropertySet aControl5 = null; XGridColumnFactory columns = null; @@ -327,8 +326,6 @@ class OGridControlModelold extends TestCase { // first we write what we are intend to do to log file log.println("creating a test environment"); - //get GridControlModel - String objName = "Grid"; XControlShape shape = FormTools.insertControlShape(xDrawDoc, 5000, 7000, 2000, 2000, "GridControl"); @@ -345,7 +342,7 @@ class OGridControlModelold extends TestCase { aControl2 = columns.createColumn("DateField"); aControl3 = columns.createColumn("TextField"); aControl4 = columns.createColumn("TextField"); - aControl5 = columns.createColumn("TextField"); + columns.createColumn("TextField"); } catch (com.sun.star.lang.IllegalArgumentException e) { // Some exception occures.FAILED log.println("!!! Couldn't create instance : " + e); diff --git a/qadevOOo/tests/java/mod/_forms/OTimeModel.java b/qadevOOo/tests/java/mod/_forms/OTimeModel.java index b5689275dd8d..8c97bac37114 100644 --- a/qadevOOo/tests/java/mod/_forms/OTimeModel.java +++ b/qadevOOo/tests/java/mod/_forms/OTimeModel.java @@ -174,7 +174,6 @@ public class OTimeModel extends GenericModelTest { } static class Checker implements UpdateChecker { - private short lastItem = (short) 0; XLoadable formLoaderF = null; XPropertySet ps = null; XInterface ctrl = null; diff --git a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java index 9f4362a89bd2..f413ad9cced2 100644 --- a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java +++ b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java @@ -100,7 +100,7 @@ public class ModuleUIConfigurationManager extends TestCase { tEnv = new TestEnvironment(oObj); XNameAccess xMM = UnoRuntime.queryInterface(XNameAccess.class, xMSF.createInstance("com.sun.star.comp.framework.ModuleManager")); - String[] names = xMM.getElementNames(); + xMM.getElementNames(); o = xMSF.createInstance("com.sun.star.embed.StorageFactory"); XSingleServiceFactory xStorageService = UnoRuntime.queryInterface(XSingleServiceFactory.class, o); diff --git a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java index a53c46374db0..dae5c0f9191a 100644 --- a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java +++ b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java @@ -134,7 +134,7 @@ public class UIConfigurationManager extends TestCase { try { if (iUniqueCounter == 0) { iUniqueCounter++; - PropertyValue[][]props = xUIManager.getUIElementsInfo(UIElementType.UNKNOWN); + xUIManager.getUIElementsInfo(UIElementType.UNKNOWN); XIndexAccess xMenuBarSettings = xUIManager.getSettings( "private:resource/menubar/menubar", true); diff --git a/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java b/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java index 9b17a34042c2..ee007bcaa6d0 100644 --- a/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java +++ b/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java @@ -87,7 +87,7 @@ public class ContentHandlerFactory extends TestCase { XNameAccess xNA = UnoRuntime.queryInterface (XNameAccess.class, oObj); tEnv.addObjRelation("XMSF.serviceNames", xNA.getElementNames()); - String[] dummy = xNA.getElementNames(); + xNA.getElementNames(); // com.sun.star.container.XContainerQuery NamedValue[] querySequenze = new NamedValue[1]; diff --git a/qadevOOo/tests/java/mod/_fwl/FilterFactory.java b/qadevOOo/tests/java/mod/_fwl/FilterFactory.java index 0e105af4b6a1..e6b4b55cedcf 100644 --- a/qadevOOo/tests/java/mod/_fwl/FilterFactory.java +++ b/qadevOOo/tests/java/mod/_fwl/FilterFactory.java @@ -97,12 +97,11 @@ public class FilterFactory extends TestCase { // XNameContainer; XNameReplace String filterName = filterNames[0]; Object[] instance = null;; - PropertyValue instanceProp = new PropertyValue(); + new PropertyValue(); try{ instance = (Object[]) xNA.getByName(filterName); - PropertyValue[] props = (PropertyValue[]) instance; - instanceProp = getPropertyValue - (((PropertyValue[]) instance), "FilterService"); //instance[9]; + getPropertyValue + (((PropertyValue[]) instance), "FilterService"); } catch (com.sun.star.container.NoSuchElementException e){ throw new StatusException( Status.failed("Couldn't get elements from object")); diff --git a/qadevOOo/tests/java/mod/_remotebridge/various.java b/qadevOOo/tests/java/mod/_remotebridge/various.java index 04f4a24349d0..c2c11c076320 100644 --- a/qadevOOo/tests/java/mod/_remotebridge/various.java +++ b/qadevOOo/tests/java/mod/_remotebridge/various.java @@ -126,8 +126,6 @@ public class various extends TestCase { */ public Exception ex = null ; private XAcceptor acc = null ; - private XInstanceProvider xInstProv = null ; - private XBridgeFactory xBrdgFctr = null; /** * If method call returns some value it stores in this field. */ @@ -140,8 +138,6 @@ public class various extends TestCase { public AcceptorThread(XAcceptor acc, XInstanceProvider xInstProv, XBridgeFactory xBrdgFctr) { this.acc = acc ; - this.xInstProv = xInstProv; - this.xBrdgFctr = xBrdgFctr; } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java index 2b7714422ff1..3ba57ae9dc77 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java @@ -186,24 +186,16 @@ public class ScDataPilotFieldGroupItemObj extends TestCase throw new StatusException ("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition (1, 5); + oSheet.getCellByPosition (1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition (x, y); - aChangeValue = new Integer (27); + oSheet.getCellByPosition (x, y); + new Integer (27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java index 2fc1fa4f5bda..1a92045be7c2 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java @@ -185,24 +185,16 @@ public class ScDataPilotFieldGroupObj extends TestCase throw new StatusException ("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition (1, 5); + oSheet.getCellByPosition (1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition (x, y); - aChangeValue = new Integer (27); + oSheet.getCellByPosition (x, y); + new Integer (27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java index 7899d586b068..97294117d99c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java @@ -185,24 +185,16 @@ public class ScDataPilotFieldGroupsObj extends TestCase throw new StatusException ("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition (1, 5); + oSheet.getCellByPosition (1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition (x, y); - aChangeValue = new Integer (27); + oSheet.getCellByPosition (x, y); + new Integer (27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java index 862cd89cf96a..226c7e2e50be 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java @@ -186,23 +186,15 @@ public class ScDataPilotFieldObj extends TestCase { throw new StatusException("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); + oSheet.getCellByPosition(1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + oSheet.getCellByPosition(x, y); + new Integer(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException("Couldn't get cells for changeing.", e); diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java index 7bb82070f96c..217521d47c43 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java @@ -187,23 +187,15 @@ public class ScDataPilotItemObj extends TestCase { throw new StatusException("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); + oSheet.getCellByPosition(1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + oSheet.getCellByPosition(x, y); + new Integer(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException("Couldn't get cells for changeing.", e); diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java index 804c3a255fe2..73fb3d94d046 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java @@ -187,23 +187,15 @@ public class ScDataPilotItemsObj extends TestCase { throw new StatusException("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); + oSheet.getCellByPosition(1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + oSheet.getCellByPosition(x, y); + new Integer(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException("Couldn't get cells for changeing.", e); diff --git a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java index a63d9222a512..9930c0fa9e9e 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java @@ -174,13 +174,11 @@ public class ScDatabaseRangeObj extends TestCase { //dbRanges.addNewByName("dbRange", aRange); XNameAccess dbrNA = UnoRuntime.queryInterface( XNameAccess.class, dbRanges); - XNamed xNamed = null; - try { // we need to add it dbRanges.addNewByName(dbName,new CellRangeAddress((short)0, 0, 0, 0, 5)); - xNamed = UnoRuntime.queryInterface(XNamed.class, + UnoRuntime.queryInterface(XNamed.class, dbrNA.getByName( dbName)); diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java index e8e5a7b097fd..2bc6d4a4811f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java @@ -189,23 +189,15 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration throw new StatusException("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); + oSheet.getCellByPosition(1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + oSheet.getCellByPosition(x, y); + new Integer(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException("Couldn't get cells for changeing.", e); diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java index bcf423f105ee..23c76dc98bd1 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java @@ -144,7 +144,7 @@ public class SdUnoOutlineView extends TestCase { XDrawPagesSupplier oDPS = UnoRuntime.queryInterface(XDrawPagesSupplier.class, xImpressDoc); XDrawPages the_pages = oDPS.getDrawPages(); - XIndexAccess oDPi = UnoRuntime.queryInterface(XIndexAccess.class,the_pages); + UnoRuntime.queryInterface(XIndexAccess.class,the_pages); XModel aModel = UnoRuntime.queryInterface(XModel.class, xImpressDoc); diff --git a/qadevOOo/tests/java/mod/_stm/Pipe.java b/qadevOOo/tests/java/mod/_stm/Pipe.java index e3c869aec22d..afdf554e469e 100644 --- a/qadevOOo/tests/java/mod/_stm/Pipe.java +++ b/qadevOOo/tests/java/mod/_stm/Pipe.java @@ -89,7 +89,6 @@ public class Pipe extends TestCase { tEnv.addObjRelation("XOutputStream.StreamChecker", new ifc.io._XOutputStream.StreamChecker() { - XInputStream inStream = null; public void resetStreams() { } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java index b0e0401a2331..3028e0020802 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java @@ -162,7 +162,7 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase { XInterface oObj = null; - final XInitialization xInit = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XInitialization.class, the_frame2.getController()); PropertyValue[] params = new PropertyValue[3]; diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java index f07bf5dd3191..db3c0bbe739c 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java @@ -185,8 +185,6 @@ public class AccessibleBrowseBoxTable extends TestCase { XSelectionSupplier.class, xCont); - final Object[] initArgs = params; - XInterface oObj = null; AccessibilityTools at = new AccessibilityTools(); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java index 754f74884502..a2c0ee0bf6ee 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java @@ -159,7 +159,7 @@ public class AccessibleBrowseBoxTableCell extends TestCase { XInterface oObj = null; - final XInitialization xInit = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XInitialization.class, the_frame2.getController()); Object[] params = new Object[3]; diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java index a83aa2689c30..83dd22756976 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java @@ -190,7 +190,7 @@ public class AccessibleTreeListBoxEntry extends TestCase { XInterface oObj = null; - XInitialization xInit = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XInitialization.class, the_frame2.getController()); diff --git a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java index 68dddf1fc7ac..d86d5bcb829e 100644 --- a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java +++ b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java @@ -88,7 +88,7 @@ public class ParagraphStyle extends TestCase { oSFNA = UnoRuntime.queryInterface( XNameAccess.class,oSF.getByName("ParagraphStyles")); XIndexAccess oSFIA = UnoRuntime.queryInterface(XIndexAccess.class, oSFNA); - String[] els = oSFNA.getElementNames(); + oSFNA.getElementNames(); oStyle = UnoRuntime.queryInterface( XStyle.class,oSFIA.getByIndex(1)); } catch ( com.sun.star.lang.WrappedTargetException e ) { diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java index 4364ad03dfe9..3dc8e9e2ac09 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java @@ -75,8 +75,6 @@ public class SwAccessiblePageView extends TestCase { XInterface port = null; XInterface para = null; XPropertySet paraP = null; - XPropertySet portP = null; - XText oText = xTextDoc.getText(); XTextCursor oCursor = oText.createTextCursor(); @@ -125,7 +123,7 @@ public class SwAccessiblePageView extends TestCase { } try { - portP = UnoRuntime.queryInterface(XPropertySet.class, port); + UnoRuntime.queryInterface(XPropertySet.class, port); paraP = UnoRuntime.queryInterface(XPropertySet.class, para); paraP.setPropertyValue("BreakType",com.sun.star.style.BreakType.PAGE_AFTER); } catch ( com.sun.star.lang.WrappedTargetException e ) { diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java index afa7c6ab6123..b37512167a85 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java +++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java @@ -122,9 +122,6 @@ public class SwXAutoTextEntry extends TestCase { XAutoTextEntry oEntry = null; XAutoTextContainer oContainer; XInterface oObj = null; - int n = 0; - int nCount = 0; - log.println( "creating a test environment" ); try { XMultiServiceFactory myMSF = (XMultiServiceFactory)Param.getMSF(); diff --git a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java index a57fd9d6b21a..1601497815b2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java +++ b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java @@ -74,7 +74,6 @@ public class SwXMailMerge extends TestCase { XInterface oObj = null; XInterface oRowSet = null; - Object oConnection = null; XJob Job = null; log.println(" instantiate MailMerge service"); @@ -304,14 +303,12 @@ public class SwXMailMerge extends TestCase { log.println("create remote connection"); String databaseName = null ; - XDataSource oXDataSource = null; - Object oInterface = null; XMultiServiceFactory xMSF = null ; int uniqueSuffix = Param.getInt("uniqueSuffix"); try { xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); + xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); // retrieving temp directory for database String tmpDatabaseUrl = utils.getOfficeTempDir((XMultiServiceFactory)Param.getMSF()); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java index 97700079e63e..45cb0a88241c 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java @@ -120,7 +120,6 @@ public class SwXTextPortionEnumeration extends TestCase { XEnumerationAccess oEnumA = UnoRuntime.queryInterface( XEnumerationAccess.class, oText ); XEnumeration oEnum = oEnumA.createEnumeration(); - int n = 0; while ( (oEnum.hasMoreElements()) ) { try { param = (XInterface) AnyConverter.toObject( @@ -130,7 +129,6 @@ public class SwXTextPortionEnumeration extends TestCase { e.printStackTrace(); throw new StatusException( "Couldn't get Paragraph", e ); } - n++; } XEnumerationAccess oEnumP = UnoRuntime.queryInterface( XEnumerationAccess.class, param ); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java index 6ec4eb7ffc9c..3be2b9dc1414 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java @@ -65,8 +65,6 @@ import util.utils; */ public class AccessibleDropDownListBox extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; - /** * Finds AccessibleDropDownListBox walking through the * accessible component tree of a writer document. diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java index 4f88a2ccf515..034f015c7c09 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java @@ -68,8 +68,6 @@ import util.utils; * @see ifc.accessibility._XAccessibleText */ public class AccessibleFixedText extends TestCase { - private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; private static XWindow xWinDlg = null; /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java index 6a644754b8c8..77e6bec67faa 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java @@ -76,8 +76,6 @@ import util.utils; */ public class AccessibleMenu extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; - /** * Finds accessible component with role <code>MENU</code> * walking through the accessible component tree of a document. diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java index 2ef80e46a4a2..8de7b62e9fa9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java @@ -66,8 +66,6 @@ import util.utils; */ public class AccessibleMenuBar extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; - /** * Finds accessible component with role <code>MENUBAR</code> * walking through the accessible component tree of a document. diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java index 990c5eca843a..b0e77d926b77 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java @@ -73,7 +73,6 @@ import util.utils; */ public class AccessibleMenuItem extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; private static XMultiServiceFactory msf = null; /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java index 68bbc21bfc7e..3b306eba08a2 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java @@ -64,7 +64,6 @@ import util.utils; */ public class AccessibleMenuSeparator extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; private static XMultiServiceFactory msf = null; /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java index 9b5ef49c81e0..949739325122 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java @@ -48,7 +48,6 @@ import util.SOfficeFactory; public class AccessiblePopupMenu extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; private static Point point; @@ -56,7 +55,7 @@ public class AccessiblePopupMenu extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java index b346eb1076cb..870bfad95f4a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java @@ -84,7 +84,6 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleText */ public class AccessibleRadioButton extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; private static XAccessibleAction accCloseButton; @@ -93,7 +92,7 @@ public class AccessibleRadioButton extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java index ba9ce4ee6d9e..fa55b1f20578 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java @@ -73,14 +73,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleAction */ public class AccessibleScrollBar extends TestCase { - private static XDesktop the_Desk; private static XComponent xDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java index 85f77a8e1c8d..d3e932988f01 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java @@ -151,7 +151,7 @@ public class AccessibleStatusBar extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - final XExtendedToolkit tk = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XExtendedToolkit.class, toolkit); tEnv.addObjRelation("EventProducer", diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java index 7ee8dafc7181..0c5b5d586c50 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java @@ -73,14 +73,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleAction */ public class AccessibleStatusBarItem extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java index 01a7ab25e91c..819984ea1394 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java @@ -79,7 +79,6 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleSelection */ public class AccessibleTabControl extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; private static XAccessibleAction accCloseButton = null; @@ -87,7 +86,7 @@ public class AccessibleTabControl extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java index bd5f29f57b93..ea3ff9eb89f1 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java @@ -76,7 +76,6 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleExtendedComponent */ public class AccessibleTabPage extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; private static XAccessibleAction accCloseButton = null; @@ -84,7 +83,7 @@ public class AccessibleTabPage extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -246,7 +245,7 @@ public class AccessibleTabPage extends TestCase { XAccessibleComponent accComp = UnoRuntime.queryInterface( XAccessibleComponent.class, oObj); - final Point point = accComp.getLocationOnScreen(); + accComp.getLocationOnScreen(); shortWait(); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java index f634a024ef5e..58f217772f20 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java @@ -63,14 +63,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleExtendedComponent */ public class AccessibleToolBox extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java index 244a158894e7..9b4ac2952778 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java @@ -77,14 +77,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleValue */ public class AccessibleToolBoxItem extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java index d43c66b164a4..d3e1f8e69f58 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java @@ -79,14 +79,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleValue */ public class AccessibleWindow extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java index 41fd13b6b435..c0b77dca48ef 100644 --- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java +++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java @@ -43,15 +43,11 @@ public class MutableTreeNode extends TestCase { private static XInterface oObj = null; private static XMutableTreeDataModel mXTreeDataModel; private static XMultiServiceFactory mxMSF; - private static PrintWriter log; - private static boolean debug = false; /** * Creates StarOffice Writer document. */ protected void initialize(TestParameters tParam, PrintWriter log) { - this.log = log; - debug = tParam.getBool(PropertyName.DEBUG_IS_ACTIVE); mxMSF = (XMultiServiceFactory) tParam.getMSF(); // log.println("creating a textdocument"); // xTextDoc = WriterTools.createTextDoc(mxMSF); @@ -120,7 +116,7 @@ public class MutableTreeNode extends TestCase { if( xNode.getChildCount() == 0 ) { - String sParentPath = (String) xNode.getDataValue(); + xNode.getDataValue(); String officeUserPath = utils.getOfficeUserPath(mxMSF); Object fileacc = null; @@ -129,7 +125,7 @@ public class MutableTreeNode extends TestCase { } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(); } - XSimpleFileAccess sA = UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); + UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); dirlist(officeUserPath, xNode); @@ -149,7 +145,7 @@ public class MutableTreeNode extends TestCase { try { xChildNode = mXTreeDataModel.createNode(dir.substring(dir.lastIndexOf("/")+1, dir.length()), sfa.isFolder(dir)); xChildNode.setDataValue(dir); - boolean test = sfa.isFolder(dir); + sfa.isFolder(dir); if (sfa.isFolder(dir)){ xChildNode.setExpandedGraphicURL( "private:graphicrepository/sd/res/triangle_down.png"); xChildNode.setCollapsedGraphicURL("private:graphicrepository/sd/res/triangle_right.png"); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java index 1d8f50e365f8..3087387ce11a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java @@ -151,7 +151,7 @@ public class UnoControlDialogModel extends TestCase { log.println("creating a new environment for object"); - XMultiServiceFactory oMSF = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XMultiServiceFactory.class, oObj); TestEnvironment tEnv = new TestEnvironment(oObj); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java index 57b15539be4e..a3dad60c3522 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java @@ -66,7 +66,7 @@ public class UnoScrollBarControl extends TestCase { XFrame xFrame = xModel.getCurrentController().getFrame(); XWindow xWin = xFrame.getContainerWindow(); - Toolkit tk = Toolkit.getDefaultToolkit(); + Toolkit.getDefaultToolkit(); Dimension dim = new Dimension(800, 600); Rectangle newPosSize = xWin.getPosSize(); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java index 570e12d588c8..e40fa35723d9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java @@ -53,22 +53,16 @@ import util.utils; public class UnoTreeControl extends TestCase { - private static XTextDocument xTextDoc; private static XMutableTreeDataModel mXTreeDataModel; private static XMultiServiceFactory mxMSF; - private static PrintWriter log; - private static boolean debug = false; protected void initialize(TestParameters Param, PrintWriter log) { - this.log = log; - debug = Param.getBool(PropertyName.DEBUG_IS_ACTIVE); - SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF()); try { log.println("creating a textdocument"); - xTextDoc = SOF.createTextDoc(null); + SOF.createTextDoc(null); } catch (com.sun.star.uno.Exception e) { // Some exception occures.FAILED e.printStackTrace(log); @@ -210,7 +204,7 @@ public class UnoTreeControl extends TestCase { if( xNode.getChildCount() == 0 ) { - String sParentPath = (String) xNode.getDataValue(); + xNode.getDataValue(); String officeUserPath = utils.getOfficeUserPath(mxMSF); Object fileacc = null; @@ -219,7 +213,7 @@ public class UnoTreeControl extends TestCase { } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(); } - XSimpleFileAccess sA = UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); + UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); dirlist(officeUserPath, xNode); @@ -239,7 +233,7 @@ public class UnoTreeControl extends TestCase { try { xChildNode = mXTreeDataModel.createNode(dir.substring(dir.lastIndexOf("/")+1, dir.length()), sfa.isFolder(dir)); xChildNode.setDataValue(dir); - boolean test = sfa.isFolder(dir); + sfa.isFolder(dir); if (sfa.isFolder(dir)){ xChildNode.setExpandedGraphicURL( "private:graphicrepository/sd/res/triangle_down.png"); xChildNode.setCollapsedGraphicURL("private:graphicrepository/sd/res/triangle_right.png"); |