diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java index 5cf917621745..60f40eefa7b8 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java @@ -96,7 +96,7 @@ public class ScDataPilotItemsObj extends TestCase { protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xSheetDoc "); - XComponent oComp = (XComponent) UnoRuntime.queryInterface( + XComponent oComp = UnoRuntime.queryInterface( XComponent.class, xSheetDoc); util.DesktopTools.closeDoc(oComp); } @@ -144,7 +144,7 @@ public class ScDataPilotItemsObj extends TestCase { XSpreadsheets xSpreadsheets = (XSpreadsheets) xSheetDoc.getSheets(); XSpreadsheet oSheet = null; XSpreadsheet oSheet2 = null; - XIndexAccess oIndexAccess = (XIndexAccess) UnoRuntime.queryInterface( + XIndexAccess oIndexAccess = UnoRuntime.queryInterface( XIndexAccess.class, xSpreadsheets); // Make sure there are at least two sheets xSpreadsheets.insertNewByName("Some Sheet", (short)0); @@ -213,7 +213,7 @@ public class ScDataPilotItemsObj extends TestCase { // create the test objects log.println("Getting test objects"); - XDataPilotTablesSupplier DPTS = (XDataPilotTablesSupplier) UnoRuntime.queryInterface( + XDataPilotTablesSupplier DPTS = UnoRuntime.queryInterface( XDataPilotTablesSupplier.class, oSheet); XDataPilotTables DPT = DPTS.getDataPilotTables(); @@ -281,7 +281,7 @@ public class ScDataPilotItemsObj extends TestCase { log.println("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); - XDataPilotField xDataPilotField = (XDataPilotField) UnoRuntime.queryInterface( + XDataPilotField xDataPilotField = UnoRuntime.queryInterface( XDataPilotField.class, oObj); oObj = xDataPilotField.getItems(); @@ -317,7 +317,7 @@ public class ScDataPilotItemsObj extends TestCase { return; } - XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, + XNamed named = UnoRuntime.queryInterface(XNamed.class, field); String name = named.getName(); |