summaryrefslogtreecommitdiff
path: root/extensions/test/pgp/TestPGP.java
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/test/pgp/TestPGP.java')
-rw-r--r--extensions/test/pgp/TestPGP.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/test/pgp/TestPGP.java b/extensions/test/pgp/TestPGP.java
index 9559f1c18480..78d4285f707d 100644
--- a/extensions/test/pgp/TestPGP.java
+++ b/extensions/test/pgp/TestPGP.java
@@ -41,18 +41,18 @@ public class TestPGP {
static void doSomething(Object r) throws com.sun.star.uno.Exception, IOException, Exception {
- XNamingService rName = (XNamingService)UnoRuntime.queryInterface(XNamingService.class, r);
+ XNamingService rName = UnoRuntime.queryInterface(XNamingService.class, r);
if(rName != null) {
System.err.println("got the remote naming service !");
Object rXsmgr = rName.getRegisteredObject("StarOffice.ServiceManager");
- XMultiServiceFactory rSmgr = (XMultiServiceFactory)UnoRuntime.queryInterface(XMultiServiceFactory.class, rXsmgr);
+ XMultiServiceFactory rSmgr = UnoRuntime.queryInterface(XMultiServiceFactory.class, rXsmgr);
if(rSmgr != null) {
System.err.println("got the remote service manager !");
}
- XSet set= (XSet)UnoRuntime.queryInterface(XSet.class, rSmgr);
+ XSet set= UnoRuntime.queryInterface(XSet.class, rSmgr);
if( set == null) {
System.err.println(" couldn't get XSet from ServiceFactory");
return;