diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 14:53:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-11 12:33:02 +0200 |
commit | 41709cc2688738f091a4b17839fe853caa5a0bfd (patch) | |
tree | 2e12ca2d594ce6767146c25862869ab7e9d2bc14 /framework/qa | |
parent | 2b9ad46b23fdb39cd456cdc543cce346c6f325c3 (diff) |
java: remove unused parameters
Change-Id: I47c618117e079bb2ef90d92c449c8166ea957fa5
Diffstat (limited to 'framework/qa')
8 files changed, 16 insertions, 24 deletions
diff --git a/framework/qa/complex/XUserInputInterception/EventTest.java b/framework/qa/complex/XUserInputInterception/EventTest.java index c71c3df9a33e..3e5694d48a0e 100644 --- a/framework/qa/complex/XUserInputInterception/EventTest.java +++ b/framework/qa/complex/XUserInputInterception/EventTest.java @@ -487,7 +487,6 @@ public class EventTest { // get the position and the range of a scroll bar XWindow xWindow = AccessibilityTools.getCurrentWindow( - getMSF(), xModel); XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); diff --git a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java index 95314dbf3b17..6b2ff6f0c51c 100644 --- a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java +++ b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java @@ -81,7 +81,7 @@ public class AcceleratorsConfigurationTest String sConfigPath = "org.openoffice.Office.Accelerators"; boolean bReadOnly = false; - XNameAccess m_xConfig2 = openConfig(m_xSmgr, sConfigPath, bReadOnly); + XNameAccess m_xConfig2 = openConfig(sConfigPath, bReadOnly); if (m_xConfig2 != null) { m_xPrimaryKeys = UnoRuntime.queryInterface(XNameAccess.class, m_xConfig2.getByName("PrimaryKeys")); @@ -694,7 +694,7 @@ public class AcceleratorsConfigurationTest String sConfigPath = "org.openoffice.Setup"; boolean bReadOnly = true; - XNameAccess xRootConfig = openConfig(m_xSmgr, sConfigPath, bReadOnly); + XNameAccess xRootConfig = openConfig(sConfigPath, bReadOnly); if (xRootConfig != null) { @@ -714,7 +714,7 @@ public class AcceleratorsConfigurationTest { String sConfigPath = "org.openoffice.Setup"; boolean bReadOnly = false; - XNameAccess xRootConfig = openConfig(m_xSmgr, sConfigPath, bReadOnly); + XNameAccess xRootConfig = openConfig(sConfigPath, bReadOnly); if (xRootConfig != null) { @@ -729,7 +729,7 @@ public class AcceleratorsConfigurationTest /** @todo document me. */ - private XNameAccess openConfig(XMultiServiceFactory xSMGR, + private XNameAccess openConfig( String sConfigPath, boolean bReadOnly) throws java.lang.Exception diff --git a/framework/qa/complex/contextMenuInterceptor/CheckContextMenuInterceptor.java b/framework/qa/complex/contextMenuInterceptor/CheckContextMenuInterceptor.java index f621a5a5ef0b..59d8abc6b58d 100644 --- a/framework/qa/complex/contextMenuInterceptor/CheckContextMenuInterceptor.java +++ b/framework/qa/complex/contextMenuInterceptor/CheckContextMenuInterceptor.java @@ -293,7 +293,7 @@ public class CheckContextMenuInterceptor System.out.println("try to open contex menu..."); new AccessibilityTools(); - xWindow = AccessibilityTools.getCurrentWindow(xMSF, aModel); + xWindow = AccessibilityTools.getCurrentWindow(aModel); XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); diff --git a/framework/qa/complex/framework/recovery/RecoveryTest.java b/framework/qa/complex/framework/recovery/RecoveryTest.java index c022e17d9b97..7a5d2acdec9f 100644 --- a/framework/qa/complex/framework/recovery/RecoveryTest.java +++ b/framework/qa/complex/framework/recovery/RecoveryTest.java @@ -102,7 +102,7 @@ public class RecoveryTest extends ComplexTestCase { handleRecoveryDialogAfterCrash(expectedDocumentCount); startOffice(); handleRecoveryDialog_QuickExit(expectedDocumentCount); - handleCrashReporterDialog(true, true); + handleCrashReporterDialog(true); checkDocumentCount(expectedDocumentCount); } @@ -264,7 +264,7 @@ public class RecoveryTest extends ComplexTestCase { } } - private void handleCrashReporterDialog(boolean cancel, boolean YesNo){ + private void handleCrashReporterDialog(boolean cancel){ try{ log.println("try to get Crash Reporter Dialog..."); diff --git a/framework/qa/complex/imageManager/CheckImageManager.java b/framework/qa/complex/imageManager/CheckImageManager.java index 02111c0d89f4..d5004c477928 100644 --- a/framework/qa/complex/imageManager/CheckImageManager.java +++ b/framework/qa/complex/imageManager/CheckImageManager.java @@ -75,7 +75,7 @@ public class CheckImageManager { fail("Exception. " + e.getMessage()); } XImageManager xImageManager = UnoRuntime.queryInterface(XImageManager.class, xManager.getImageManager()); - performChecks(xImageManager, "ModuleUIConfig", xManager); + performChecks(xImageManager, "ModuleUIConfig"); } public void checkImageManager() { @@ -89,10 +89,10 @@ public class CheckImageManager { } XImageManager xImageManager = UnoRuntime.queryInterface(XImageManager.class, xManager.getImageManager()); - performChecks(xImageManager, "UIConfig", xManager); + performChecks(xImageManager, "UIConfig"); } - private void performChecks(XImageManager xImageManager, String testObjectName, XUIConfigurationManager xManager) { + private void performChecks(XImageManager xImageManager, String testObjectName) { util.dbg.printInterfaces(xImageManager); OXUIConfigurationListenerImpl configListener = new OXUIConfigurationListenerImpl(); diff --git a/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java b/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java index 3e2b37bda924..955fa0b1dd38 100644 --- a/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java +++ b/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java @@ -219,7 +219,7 @@ public class CheckXComponentLoader @Test public void checkUsingOfMediaDescriptor() { InteractionHandler xHandler = new InteractionHandler(); - StatusIndicator xIndicator = new StatusIndicator(StatusIndicator.SHOWSTATUS_LOG); + StatusIndicator xIndicator = new StatusIndicator(); PropertyValue[] lProps = new PropertyValue[3]; diff --git a/framework/qa/complex/loadAllDocuments/StatusIndicator.java b/framework/qa/complex/loadAllDocuments/StatusIndicator.java index d83651ed861d..691b4c76b605 100644 --- a/framework/qa/complex/loadAllDocuments/StatusIndicator.java +++ b/framework/qa/complex/loadAllDocuments/StatusIndicator.java @@ -53,7 +53,7 @@ public class StatusIndicator implements com.sun.star.task.XStatusIndicator * ctor * It's initialize an object of this class with default values. */ - public StatusIndicator( int nOut) + public StatusIndicator() { m_bWasUsed = false; } diff --git a/framework/qa/complex/path_settings/PathSettingsTest.java b/framework/qa/complex/path_settings/PathSettingsTest.java index f23cf0e9ffa4..0c01ef32228e 100644 --- a/framework/qa/complex/path_settings/PathSettingsTest.java +++ b/framework/qa/complex/path_settings/PathSettingsTest.java @@ -563,7 +563,10 @@ public class PathSettingsTest System.out.println(" FAIL: Did not change value on property " + name + "."); bResult = false; } - newVal = changeToIncorrectValue(val); + /* + * Change the given String to an incorrect path URL. + */ + newVal = "fileblablabla"; System.out.println(" Try to change to incorrect value '" + newVal + "'"); try { @@ -650,16 +653,6 @@ public class PathSettingsTest } /** - * Change the given String to an incorrect path URL. - * @return The changed path URL. - */ - private String changeToIncorrectValue(String path) - { - // return an illegal path - return "fileblablabla"; - } - - /** * Listener implementation which sets a flag when * listener was called. */ |