summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java')
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java
index 8eff20ff8811..f82641c80f69 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java
@@ -75,8 +75,7 @@ public class _XSheetAnnotation extends MultiMethodTest {
* Has <b>OK</b> status if the method returns <code>true</code>.
*/
public void _getIsVisible() {
- XSimpleText oText = (XSimpleText)
- UnoRuntime.queryInterface(XSimpleText.class, oObj);
+ XSimpleText oText = UnoRuntime.queryInterface(XSimpleText.class, oObj);
oText.setString("XSheetAnnotation");
oObj.setIsVisible(true);
boolean bVis = oObj.getIsVisible();
@@ -112,8 +111,7 @@ public class _XSheetAnnotation extends MultiMethodTest {
*/
public void _setIsVisible() {
boolean bResult = true;
- XSimpleText oText = (XSimpleText)
- UnoRuntime.queryInterface(XSimpleText.class, oObj);
+ XSimpleText oText = UnoRuntime.queryInterface(XSimpleText.class, oObj);
oText.setString("XSheetAnnotation");
oObj.setIsVisible(false);
boolean bVis = oObj.getIsVisible();