summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-27 15:40:17 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:01 +0200
commitb65017a2a7af290f6681da7b197a52efe83d5185 (patch)
tree06f71a435ba200d044109469b13be7c8f5dbe950 /qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
parent33ec740d1438c3dddf8e1974757ed05bb76425ca (diff)
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java')
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
index 573afe6214ec..9134ed856ef1 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
@@ -76,7 +76,7 @@ public class AccessibleTreeListBox extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(
+ the_Desk = UnoRuntime.queryInterface(
XDesktop.class, DesktopTools.createDesktop((XMultiServiceFactory)Param.getMSF()));
}
@@ -138,12 +138,11 @@ public class AccessibleTreeListBox extends TestCase {
shortWait();
- XModel aModel1 = (XModel)
- UnoRuntime.queryInterface(XModel.class, xTextDoc);
+ XModel aModel1 = UnoRuntime.queryInterface(XModel.class, xTextDoc);
XController secondController = aModel1.getCurrentController();
- XDispatchProvider aProv = (XDispatchProvider)UnoRuntime.
+ XDispatchProvider aProv = UnoRuntime.
queryInterface(XDispatchProvider.class, secondController);
XDispatch getting = null;
@@ -181,9 +180,8 @@ public class AccessibleTreeListBox extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- final XInitialization xInit = (XInitialization)
- UnoRuntime.queryInterface(
- XInitialization.class, the_frame2.getController());
+ final XInitialization xInit = UnoRuntime.queryInterface(
+ XInitialization.class, the_frame2.getController());
Object[] params = new Object[3];
PropertyValue param1 = new PropertyValue();