summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/ifc/util/_XCloneable.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/util/_XCloneable.java')
-rw-r--r--qadevOOo/tests/java/ifc/util/_XCloneable.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/util/_XCloneable.java b/qadevOOo/tests/java/ifc/util/_XCloneable.java
index 3be749df54c5..f08d593cae98 100644
--- a/qadevOOo/tests/java/ifc/util/_XCloneable.java
+++ b/qadevOOo/tests/java/ifc/util/_XCloneable.java
@@ -59,8 +59,7 @@ public class _XCloneable extends MultiMethodTest {
protected byte[] getImplementationID(XInterface ifc) {
byte[] res = new byte[0];
- XTypeProvider provider = (XTypeProvider)
- UnoRuntime.queryInterface(XTypeProvider.class, ifc);
+ XTypeProvider provider = UnoRuntime.queryInterface(XTypeProvider.class, ifc);
if (provider != null) {
res = provider.getImplementationId();
}
@@ -79,8 +78,7 @@ public class _XCloneable extends MultiMethodTest {
protected String getImplementationName(XInterface ifc) {
String res = "";
- XServiceInfo info = (XServiceInfo)
- UnoRuntime.queryInterface(XServiceInfo.class, ifc);
+ XServiceInfo info = UnoRuntime.queryInterface(XServiceInfo.class, ifc);
if (info != null) {
res = info.getImplementationName();
}