summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_forms/OButtonControl.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/OButtonControl.java')
-rw-r--r--qadevOOo/tests/java/mod/_forms/OButtonControl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/OButtonControl.java b/qadevOOo/tests/java/mod/_forms/OButtonControl.java
index a6c554e54564..323dfc372f70 100644
--- a/qadevOOo/tests/java/mod/_forms/OButtonControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OButtonControl.java
@@ -104,7 +104,7 @@ public class OButtonControl 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) {
@@ -170,7 +170,7 @@ public class OButtonControl 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());
@@ -203,7 +203,7 @@ public class OButtonControl extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);