summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_forms/OTimeControl.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/OTimeControl.java')
-rw-r--r--qadevOOo/tests/java/mod/_forms/OTimeControl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/OTimeControl.java b/qadevOOo/tests/java/mod/_forms/OTimeControl.java
index 85dc9370c395..a48259feb66c 100644
--- a/qadevOOo/tests/java/mod/_forms/OTimeControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OTimeControl.java
@@ -116,7 +116,7 @@ public class OTimeControl 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) {
@@ -182,7 +182,7 @@ public class OTimeControl 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());
@@ -215,7 +215,7 @@ public class OTimeControl 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);
@@ -224,7 +224,7 @@ public class OTimeControl 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);