summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java b/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java
index 10377ca55393..1708d297bced 100644
--- a/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java
@@ -84,8 +84,7 @@ public class ScCellSearchObj 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);
}
@@ -111,8 +110,7 @@ public class ScCellSearchObj 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(
@@ -128,8 +126,7 @@ public class ScCellSearchObj extends TestCase {
throw new StatusException( "Couldn't get a spreadsheet", e);
}
- XSearchable xSearch = (XSearchable)
- UnoRuntime.queryInterface(XSearchable.class,oSheet);
+ XSearchable xSearch = UnoRuntime.queryInterface(XSearchable.class,oSheet);
oObj = xSearch.createSearchDescriptor();
// create testobject here