summaryrefslogtreecommitdiffstats
path: root/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'jurt/com/sun/star/comp/servicemanager/ServiceManager.java')
-rw-r--r--jurt/com/sun/star/comp/servicemanager/ServiceManager.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/jurt/com/sun/star/comp/servicemanager/ServiceManager.java b/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
index adb0c54c7e28..b791c6501a36 100644
--- a/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
+++ b/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
@@ -158,7 +158,7 @@ public class ServiceManager implements XMultiServiceFactory,
if (loaderObj == null)
throw new com.sun.star.uno.Exception("Can get an instance of com.sun.star.loader.Java");
- return (XImplementationLoader) UnoRuntime.queryInterface( XImplementationLoader.class, loaderObj );
+ return UnoRuntime.queryInterface( XImplementationLoader.class, loaderObj );
}
/**
@@ -380,7 +380,7 @@ public class ServiceManager implements XMultiServiceFactory,
Object fac = queryServiceFactory( rServiceSpecifier );
if (fac != null)
{
- XSingleComponentFactory xCompFac = (XSingleComponentFactory)UnoRuntime.queryInterface(
+ XSingleComponentFactory xCompFac = UnoRuntime.queryInterface(
XSingleComponentFactory.class, fac );
if (xCompFac != null)
{
@@ -388,7 +388,7 @@ public class ServiceManager implements XMultiServiceFactory,
}
else
{
- XSingleServiceFactory xServiceFac = (XSingleServiceFactory)UnoRuntime.queryInterface(
+ XSingleServiceFactory xServiceFac = UnoRuntime.queryInterface(
XSingleServiceFactory.class, fac );
if (xServiceFac != null)
{
@@ -422,7 +422,7 @@ public class ServiceManager implements XMultiServiceFactory,
Object fac = queryServiceFactory( rServiceSpecifier );
if (fac != null)
{
- XSingleComponentFactory xCompFac = (XSingleComponentFactory)UnoRuntime.queryInterface(
+ XSingleComponentFactory xCompFac = UnoRuntime.queryInterface(
XSingleComponentFactory.class, fac );
if (xCompFac != null)
{
@@ -430,7 +430,7 @@ public class ServiceManager implements XMultiServiceFactory,
}
else
{
- XSingleServiceFactory xServiceFac = (XSingleServiceFactory)UnoRuntime.queryInterface(
+ XSingleServiceFactory xServiceFac = UnoRuntime.queryInterface(
XSingleServiceFactory.class, fac );
if (xServiceFac != null)
{
@@ -528,7 +528,7 @@ public class ServiceManager implements XMultiServiceFactory,
if (object == null)
throw new com.sun.star.uno.RuntimeException("The parameter must not been null");
- XServiceInfo xServiceInfo = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, object);
+ XServiceInfo xServiceInfo = UnoRuntime.queryInterface(XServiceInfo.class, object);
if (xServiceInfo != null) {
return UnoRuntime.areSame(factoriesByImplNames.get(xServiceInfo.getImplementationName()), object);
@@ -552,7 +552,7 @@ public class ServiceManager implements XMultiServiceFactory,
if (object == null) throw new com.sun.star.lang.IllegalArgumentException();
XServiceInfo xServiceInfo =
- (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, object);
+ UnoRuntime.queryInterface(XServiceInfo.class, object);
if (xServiceInfo == null)
throw new com.sun.star.lang.IllegalArgumentException(
@@ -606,7 +606,7 @@ public class ServiceManager implements XMultiServiceFactory,
);
XServiceInfo xServiceInfo =
- (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, object);
+ UnoRuntime.queryInterface(XServiceInfo.class, object);
if (xServiceInfo == null)
throw new com.sun.star.lang.IllegalArgumentException(
@@ -614,7 +614,7 @@ public class ServiceManager implements XMultiServiceFactory,
);
XSingleServiceFactory xSingleServiceFactory =
- (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class, object);
+ UnoRuntime.queryInterface(XSingleServiceFactory.class, object);
if (xSingleServiceFactory == null)
throw new com.sun.star.lang.IllegalArgumentException(