summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java')
-rw-r--r--qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java
index e47d0001152c..d9f10f5192c7 100644
--- a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java
+++ b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java
@@ -107,8 +107,7 @@ public class CachedContentResultSetFactory extends TestCase {
("com.sun.star.ucb.UniversalContentBroker",
new Object[] {"Local", "Office"}) ;
- XContentIdentifierFactory ciFac = (XContentIdentifierFactory)
- UnoRuntime.queryInterface(XContentIdentifierFactory.class, oUCB) ;
+ XContentIdentifierFactory ciFac = UnoRuntime.queryInterface(XContentIdentifierFactory.class, oUCB) ;
String url = util.utils.getFullTestURL("SwXTextEmbeddedObject.sxw") ;
String escUrl = "" ;
@@ -127,13 +126,11 @@ public class CachedContentResultSetFactory extends TestCase {
XContentIdentifier CI = ciFac.createContentIdentifier(cntUrl) ;
- XContentProvider cntProv = (XContentProvider)
- UnoRuntime.queryInterface(XContentProvider.class, oUCB) ;
+ XContentProvider cntProv = UnoRuntime.queryInterface(XContentProvider.class, oUCB) ;
XContent cnt = cntProv.queryContent(CI) ;
- XCommandProcessor cmdProc = (XCommandProcessor)
- UnoRuntime.queryInterface(XCommandProcessor.class, cnt) ;
+ XCommandProcessor cmdProc = UnoRuntime.queryInterface(XCommandProcessor.class, cnt) ;
Property prop = new Property() ;
prop.Name = "Title" ;
@@ -157,8 +154,8 @@ public class CachedContentResultSetFactory extends TestCase {
("com.sun.star.ucb.CachedContentResultSetStubFactory") ;
XCachedContentResultSetStubFactory xStubFactory =
- (XCachedContentResultSetStubFactory) UnoRuntime.queryInterface
- (XCachedContentResultSetStubFactory.class, oStubFactory) ;
+ UnoRuntime.queryInterface
+ (XCachedContentResultSetStubFactory.class, oStubFactory) ;
resSetStub = xStubFactory.createCachedContentResultSetStub(resSet) ;