diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java b/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java index 6a714cd8413c..cb6267576f54 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java @@ -61,8 +61,7 @@ public class AccessibleEditableTextPara extends TestCase { XInterface oObj = null; - XModel aModel = (XModel) - UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc); + XModel aModel = UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc); AccessibilityTools at = new AccessibilityTools(); @@ -74,7 +73,7 @@ public class AccessibleEditableTextPara extends TestCase { XAccessibleContext InputLine = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TEXT_FRAME,"Input line"); try { oObj = InputLine.getAccessibleChild(0); - XAccessibleEditableText et = (XAccessibleEditableText) UnoRuntime.queryInterface(XAccessibleEditableText.class, oObj); + XAccessibleEditableText et = UnoRuntime.queryInterface(XAccessibleEditableText.class, oObj); et.setText("AccessibleEditablePara"); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { @@ -83,8 +82,7 @@ public class AccessibleEditableTextPara extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - final XAccessibleEditableText edText = (XAccessibleEditableText) - UnoRuntime.queryInterface(XAccessibleEditableText.class,oObj) ; + final XAccessibleEditableText edText = UnoRuntime.queryInterface(XAccessibleEditableText.class,oObj) ; tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { @@ -130,7 +128,7 @@ public class AccessibleEditableTextPara extends TestCase { try { log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = (XComponent) UnoRuntime.queryInterface(XComponent.class,SOF.createCalcDoc(null)); + xSpreadsheetDoc = UnoRuntime.queryInterface(XComponent.class,SOF.createCalcDoc(null)); shortWait(); } catch (com.sun.star.uno.Exception e) { e.printStackTrace( log ); |