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/java/mod/_forms | |
parent | 8cd0fc50aa895d5c1588623a7675dd5679752379 (diff) |
Java cleanup - remove unused local variables
Change-Id: Ied9c8635cde96d2d00d66a68cd8387799455c2ec
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms')
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/ODatabaseForm.java | 3 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/OGridControlModel.java | 5 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/OTimeModel.java | 1 |
3 files changed, 2 insertions, 7 deletions
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; |