summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java
index 493a4d884ded..8aa19354cff7 100644
--- a/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java
@@ -75,8 +75,7 @@ public class ScCellFormatsEnumeration 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);
}
@@ -108,8 +107,7 @@ public class ScCellFormatsEnumeration extends TestCase {
log.println("getting a sheet");
XSpreadsheet oSheet = null;
- XIndexAccess oIndexAccess = (XIndexAccess)
- UnoRuntime.queryInterface(XIndexAccess.class, xSpreadsheets);
+ XIndexAccess oIndexAccess = UnoRuntime.queryInterface(XIndexAccess.class, xSpreadsheets);
try {
oSheet = (XSpreadsheet) AnyConverter.toObject(
@@ -127,13 +125,11 @@ public class ScCellFormatsEnumeration extends TestCase {
log.println("getting CellFormats");
- XCellFormatRangesSupplier xCFRS = (XCellFormatRangesSupplier)
- UnoRuntime.queryInterface(XCellFormatRangesSupplier.class,oSheet);
+ XCellFormatRangesSupplier xCFRS = UnoRuntime.queryInterface(XCellFormatRangesSupplier.class,oSheet);
XIndexAccess formats = xCFRS.getCellFormatRanges();
log.println("getting Enumeration");
- XEnumerationAccess oEnum = (XEnumerationAccess)
- UnoRuntime.queryInterface(XEnumerationAccess.class,formats);
+ XEnumerationAccess oEnum = UnoRuntime.queryInterface(XEnumerationAccess.class,formats);
oObj = oEnum.createEnumeration();
log.println("creating a new environment for object");