summaryrefslogtreecommitdiff
path: root/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java')
-rw-r--r--jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java b/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java
index 5e3110d140fa..94686e7135fd 100644
--- a/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java
+++ b/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java
@@ -58,19 +58,19 @@ public class UrlResolver_Test
Object initialObject = urlResolver.resolve(
"uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" );
- XMultiComponentFactory xOfficeFactory= (XMultiComponentFactory) UnoRuntime.queryInterface(
+ XMultiComponentFactory xOfficeFactory= UnoRuntime.queryInterface(
XMultiComponentFactory.class, initialObject );
// retrieve the component context (it's not yet exported from the office)
// Query for the XPropertySet interface.
- XPropertySet xProperySet = ( XPropertySet ) UnoRuntime.queryInterface(
+ XPropertySet xProperySet = UnoRuntime.queryInterface(
XPropertySet.class, xOfficeFactory);
// Get the default context from the office server.
Object oDefaultContext = xProperySet.getPropertyValue( "DefaultContext" );
// Query for the interface XComponentContext.
- XComponentContext xOfficeComponentContext = ( XComponentContext ) UnoRuntime.queryInterface(
+ XComponentContext xOfficeComponentContext = UnoRuntime.queryInterface(
XComponentContext.class, oDefaultContext );
// now create the desktop service