diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 15:40:17 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:01 +0200 |
commit | b65017a2a7af290f6681da7b197a52efe83d5185 (patch) | |
tree | 06f71a435ba200d044109469b13be7c8f5dbe950 /qadevOOo/tests/java/mod/_forms/OEditControl.java | |
parent | Java5 update - Convert Hashtable to HashMap (diff) | |
download | core-b65017a2a7af290f6681da7b197a52efe83d5185.tar.gz core-b65017a2a7af290f6681da7b197a52efe83d5185.zip |
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/OEditControl.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/OEditControl.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/OEditControl.java b/qadevOOo/tests/java/mod/_forms/OEditControl.java index 58ff894b6a7a..fcf64d281c98 100644 --- a/qadevOOo/tests/java/mod/_forms/OEditControl.java +++ b/qadevOOo/tests/java/mod/_forms/OEditControl.java @@ -116,7 +116,7 @@ public class OEditControl extends TestCase { log.println(" disposing xTextDoc "); try { - XCloseable closer = (XCloseable) UnoRuntime.queryInterface( + XCloseable closer = UnoRuntime.queryInterface( XCloseable.class, xTextDoc); closer.close(true); } catch (com.sun.star.util.CloseVetoException e) { @@ -191,7 +191,7 @@ public class OEditControl extends TestCase { XControlModel the_Model2 = aShape2.getControl(); //Try to query XControlAccess - XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( + XControlAccess the_access = UnoRuntime.queryInterface( XControlAccess.class, xTextDoc.getCurrentController()); @@ -225,11 +225,11 @@ public class OEditControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // relations for XChangeBroadcaster - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("Win1", - (XWindow) UnoRuntime.queryInterface(XWindow.class, + UnoRuntime.queryInterface(XWindow.class, oObj)); tEnv.addObjRelation("Win2", forObjRel); tEnv.addObjRelation("CONTROL", aControl); @@ -242,7 +242,7 @@ public class OEditControl extends TestCase { // Adding relation for XTextListener ifc.awt._XTextListener.TestTextListener listener = new ifc.awt._XTextListener.TestTextListener(); - XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface( + XTextComponent textComp = UnoRuntime.queryInterface( XTextComponent.class, oObj); textComp.addTextListener(listener); tEnv.addObjRelation("TestTextListener", listener); |