diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 16:08:28 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:01 +0200 |
commit | 453d7edc424d6652e209ace4915d96193a79be71 (patch) | |
tree | 0a6af928cf7d1fd90ec995ae7d114f08eaf617fd /qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java | |
parent | b65017a2a7af290f6681da7b197a52efe83d5185 (diff) |
Java5 update - convert more code to use generics:wq
Change-Id: I7ea32cad40a6657e4e5886d04af008cb6d67ac6e
Diffstat (limited to 'qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java b/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java index c3b6b7ca4a0f..0eab955df86b 100644 --- a/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java +++ b/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java @@ -70,7 +70,7 @@ public class _XInvocationAdapterFactory extends MultiMethodTest { Object oInvFac = xMSF.createInstance ("com.sun.star.script.Invocation") ; - XSingleServiceFactory xInvFac = (XSingleServiceFactory) UnoRuntime. + XSingleServiceFactory xInvFac = UnoRuntime. queryInterface(XSingleServiceFactory.class, oInvFac) ; Object oInv = xInvFac.createInstanceWithArguments(args) ; @@ -88,7 +88,7 @@ public class _XInvocationAdapterFactory extends MultiMethodTest { Object adp = oObj.createAdapter(xInv, new Type(XInputStream.class)) ; - xInStr = (XInterface) UnoRuntime.queryInterface + xInStr = UnoRuntime.queryInterface (XInputStream.class, adp) ; |