diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScCellsObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScCellsObj.java | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellsObj.java b/qadevOOo/tests/java/mod/_sc/ScCellsObj.java index 084e70d24072..33efd3dd4916 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellsObj.java @@ -81,8 +81,7 @@ public class ScCellsObj extends TestCase { */ protected void cleanup( TestParameters tParam, PrintWriter log ) { log.println( " disposing xSheetDoc " ); - XComponent oComp = (XComponent) - UnoRuntime.queryInterface (XComponent.class, xSheetDoc) ; + XComponent oComp = UnoRuntime.queryInterface (XComponent.class, xSheetDoc) ; util.DesktopTools.closeDoc(oComp); } @@ -103,16 +102,14 @@ public class ScCellsObj extends TestCase { // creation of testobject here XSpreadsheets oSheets = (XSpreadsheets)xSheetDoc.getSheets(); - XIndexAccess oIndexAccess = (XIndexAccess) - UnoRuntime.queryInterface(XIndexAccess.class, oSheets); + XIndexAccess oIndexAccess = UnoRuntime.queryInterface(XIndexAccess.class, oSheets); XCellRange oSheet = null; try { oSheet = (XCellRange) AnyConverter.toObject( new Type(XCellRange.class),oIndexAccess.getByIndex(0)); XCell oCell_1 = (XCell)oSheet.getCellByPosition(0, 0); - XTextRange oTextRange = (XTextRange) - UnoRuntime.queryInterface(XTextRange.class, oCell_1); + XTextRange oTextRange = UnoRuntime.queryInterface(XTextRange.class, oCell_1); oTextRange.setString("ScCellsObj test 1"); @@ -120,8 +117,7 @@ public class ScCellsObj extends TestCase { oCell_2.setValue(15); XCell oCell_3 = (XCell)oSheet.getCellByPosition(3, 9); - oTextRange = (XTextRange) - UnoRuntime.queryInterface(XTextRange.class, oCell_3); + oTextRange = UnoRuntime.queryInterface(XTextRange.class, oCell_3); oTextRange.setString("ScCellsObj test 2"); @@ -142,8 +138,7 @@ public class ScCellsObj extends TestCase { throw new StatusException("Couldn't create test object", e); } - XCellRangesQuery oCellRangesQuery = (XCellRangesQuery) - UnoRuntime.queryInterface(XCellRangesQuery.class, oSheet); + XCellRangesQuery oCellRangesQuery = UnoRuntime.queryInterface(XCellRangesQuery.class, oSheet); XSheetCellRanges oSheetCellRanges = oCellRangesQuery.queryVisibleCells(); oObj = oSheetCellRanges.getCells(); |