diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-18 13:32:37 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-24 20:45:17 +0000 |
commit | fe095dada4e83129d49c8cc50501aa224d61e0f9 (patch) | |
tree | d351b1938c77c2640438dfc3427fabb8092baca3 /qadevOOo/tests | |
parent | df633ac5487fd566fbf526808bb015112bd38e77 (diff) |
java,qadev: remove unused parameters and local vars
Change-Id: Ifb9f9374051fe88dc4cd5a7a28b2c8c992ced873
Reviewed-on: https://gerrit.libreoffice.org/13097
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'qadevOOo/tests')
16 files changed, 14 insertions, 21 deletions
diff --git a/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java b/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java index 84c263ec79d4..11def39b5fcc 100644 --- a/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java +++ b/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java @@ -289,8 +289,6 @@ public class CheckModuleAPI extends ComplexTestCase { try { - // cws version: all added modules must be tested - final String cws = version.substring(4, version.length()); final CwsDataExchangeImpl cde = new CwsDataExchangeImpl(param, log); final ArrayList<String> addedModules = cde.getModules(); @@ -543,8 +541,6 @@ public class CheckModuleAPI extends ComplexTestCase try { - // cws version: all added modules must be tested - final String cws = version.substring(4, version.length()); final CwsDataExchangeImpl cde = new CwsDataExchangeImpl(param, log); cde.setUnoApiCwsStatus(status); } diff --git a/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java b/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java index 6bdd3e9e4439..04f880828723 100644 --- a/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java +++ b/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java @@ -48,7 +48,6 @@ public class _XMessageBoxFactory extends MultiMethodTest { com.sun.star.awt.MessageBoxType.ERRORBOX, 1, "The Title", "The Message"); final UITools tools = new UITools( - tParam.getMSF(), UnoRuntime.queryInterface(XWindow.class, mb)); final boolean[] done = new boolean[] { false }; final boolean[] good = new boolean[] { false }; diff --git a/qadevOOo/tests/java/ifc/task/_XInteractionHandler.java b/qadevOOo/tests/java/ifc/task/_XInteractionHandler.java index b118e2611b92..9bfc91b23559 100644 --- a/qadevOOo/tests/java/ifc/task/_XInteractionHandler.java +++ b/qadevOOo/tests/java/ifc/task/_XInteractionHandler.java @@ -55,14 +55,12 @@ public class _XInteractionHandler extends MultiMethodTest { // oObj filled by MultiMethodTest public XInteractionHandler oObj = null ; - private XInteractionRequest request = null ; - /** * Retrieves an object relation. <p> */ @Override public void before() { - request = (XInteractionRequest) + XInteractionRequest request = (XInteractionRequest) tEnv.getObjRelation("XInteractionHandler.Request") ; } diff --git a/qadevOOo/tests/java/mod/_remotebridge/various.java b/qadevOOo/tests/java/mod/_remotebridge/various.java index 4983092f37d3..cccbe77d7de5 100644 --- a/qadevOOo/tests/java/mod/_remotebridge/various.java +++ b/qadevOOo/tests/java/mod/_remotebridge/various.java @@ -210,7 +210,7 @@ public class various extends TestCase { xBrdgFctr = UnoRuntime.queryInterface(XBridgeFactory.class, oBrdg); // create own implementation of XInstanceProvider - XInstanceProvider xInstProv = new MyInstanceProvider(xMSF); + new MyInstanceProvider(xMSF); // create waiting acceptor thread accThread = new AcceptorThread(xAcctr); accThread.start(); diff --git a/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java b/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java index c167fd882584..3610ea6e7a07 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java @@ -111,7 +111,7 @@ public class ScTableSheetsObj extends TestCase { @Override protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); + SOfficeFactory.getFactory( Param.getMSF()); log.println("getting sheets"); XSpreadsheets xSpreadsheets = xSpreadsheetDoc.getSheets(); diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java index b83f80114200..8a972a1322cf 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java @@ -68,7 +68,7 @@ public class SwAccessibleTableCellView extends TestCase { XAccessibleContext oObj = null; XTextTable oTable = null; - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); + SOfficeFactory.getFactory( Param.getMSF()); oTable = SOfficeFactory.createTextTable(xTextDoc); diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java index 3696797dd8ff..73e0c5cb4648 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java @@ -71,7 +71,7 @@ public class SwAccessibleTableView extends TestCase { XInterface oObj = null; XTextTable oTable = null; - SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF()); + SOfficeFactory.getFactory(Param.getMSF()); oTable = SOfficeFactory.createTextTable( xTextDoc ); try { diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java index 04aef60e68e4..421e3aa9f73a 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java @@ -79,7 +79,7 @@ public class SwAccessibleTextFrameView extends TestCase { XTextCursor oCursor = null; // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() ); + SOfficeFactory.getFactory( Param.getMSF() ); // creating Frames log.println( "creating Frames" ); try { diff --git a/qadevOOo/tests/java/mod/_sw/SwXCell.java b/qadevOOo/tests/java/mod/_sw/SwXCell.java index b1e909996ecb..0769840fb610 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXCell.java +++ b/qadevOOo/tests/java/mod/_sw/SwXCell.java @@ -92,7 +92,7 @@ public class SwXCell extends TestCase { XInterface oObj = null; XTextContent oTable = null; - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); + SOfficeFactory.getFactory( tParam.getMSF() ); log.println( "creating a test environment" ); oTable = SOfficeFactory.createTextTable(xTextDoc, 3, 4); try { diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java index 6d0b426aafee..3880a51dbf37 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java @@ -97,7 +97,7 @@ public class SwXDocumentIndex extends TestCase { XTextContent xTC = null; Object instance = null; - SOfficeFactory SOF = SOfficeFactory.getFactory(tParam.getMSF()); + SOfficeFactory.getFactory(tParam.getMSF()); log.println( "creating a test environment" ); try { xTC = SOfficeFactory.createIndex(xTextDoc, "com.sun.star.text.DocumentIndex"); diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java index fd6ae1c004df..f0408e95b3b0 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java @@ -91,7 +91,7 @@ public class SwXDocumentIndexes extends TestCase { public TestEnvironment createTestEnvironment( TestParameters tParam, PrintWriter log ) throws StatusException { XInterface oObj = null; - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); + SOfficeFactory.getFactory( tParam.getMSF() ); log.println( "creating a test environment" ); XTextContent xTC = null; diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java index 877b53f5c5a5..63a0ab69ed59 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java @@ -89,7 +89,7 @@ public class SwXTableRows extends TestCase { XTextTable oTable = null; log.println( "creating a test environment" ); - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); + SOfficeFactory.getFactory( tParam.getMSF() ); oTable = SOfficeFactory.createTextTable( xTextDoc ); try { diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java index 9017578a1ad3..19394f728eb8 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java @@ -97,7 +97,7 @@ public class SwXTextFrameText extends TestCase { log.println( "creating a test environment" ); // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); + SOfficeFactory.getFactory( tParam.getMSF() ); // create testobject here diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java index 0755c1e0afb8..587dec3fb268 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java @@ -84,7 +84,7 @@ public class SwXTextTableCursor extends TestCase { log.println( "creating a test environment" ); // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); + SOfficeFactory.getFactory( tParam.getMSF() ); // create testobject here diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java index c31b643174b2..ba01f4885aea 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java @@ -75,7 +75,7 @@ public class SwXTextTableRow extends TestCase { log.println( "Creating a test environment" ); // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() ); + SOfficeFactory.getFactory( Param.getMSF() ); try { log.println("creating a texttable"); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java index 00446d912ad0..60c1d85d3406 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java @@ -90,7 +90,7 @@ public class SwXTextTables extends TestCase { log.println( "creating a test environment" ); // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); + SOfficeFactory.getFactory( tParam.getMSF() ); // create testobject here TestEnvironment tEnv = null; |