diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/qa/complex/tdoc/_XChild.java | 2 | ||||
-rw-r--r-- | ucb/qa/complex/tdoc/_XCommandProcessor.java | 4 | ||||
-rw-r--r-- | ucb/test/com/sun/star/comp/ucb/GlobalTransfer_Test.java | 11 |
3 files changed, 8 insertions, 9 deletions
diff --git a/ucb/qa/complex/tdoc/_XChild.java b/ucb/qa/complex/tdoc/_XChild.java index 9885d7dc5192..ab59933117e0 100644 --- a/ucb/qa/complex/tdoc/_XChild.java +++ b/ucb/qa/complex/tdoc/_XChild.java @@ -49,7 +49,7 @@ public class _XChild { gotten = oObj.getParent(); if (!hasParent) return gotten == null; - XNamed the_name = (XNamed) UnoRuntime.queryInterface(XNamed.class,gotten); + XNamed the_name = UnoRuntime.queryInterface(XNamed.class,gotten); if (the_name != null) log.println("Parent:"+the_name.getName()); return gotten != null; diff --git a/ucb/qa/complex/tdoc/_XCommandProcessor.java b/ucb/qa/complex/tdoc/_XCommandProcessor.java index 985d02b56a3a..1dd61cceb900 100644 --- a/ucb/qa/complex/tdoc/_XCommandProcessor.java +++ b/ucb/qa/complex/tdoc/_XCommandProcessor.java @@ -138,7 +138,7 @@ public class _XCommandProcessor { boolean found = false; - XCommandInfo xCmdInfo = (XCommandInfo)UnoRuntime.queryInterface( + XCommandInfo xCmdInfo = UnoRuntime.queryInterface( XCommandInfo.class, result); if (xCmdInfo != null) { CommandInfo[] cmdInfo = xCmdInfo.getCommands(); @@ -151,7 +151,7 @@ public class _XCommandProcessor { } } - XPropertySetInfo xPropInfo = (XPropertySetInfo)UnoRuntime.queryInterface( + XPropertySetInfo xPropInfo = UnoRuntime.queryInterface( XPropertySetInfo.class, result); if (xPropInfo != null) { Property[] props = xPropInfo.getProperties(); diff --git a/ucb/test/com/sun/star/comp/ucb/GlobalTransfer_Test.java b/ucb/test/com/sun/star/comp/ucb/GlobalTransfer_Test.java index a84516e0f4a4..2ac0497d952c 100644 --- a/ucb/test/com/sun/star/comp/ucb/GlobalTransfer_Test.java +++ b/ucb/test/com/sun/star/comp/ucb/GlobalTransfer_Test.java @@ -82,8 +82,8 @@ public final class GlobalTransfer_Test extends ComplexTestCase { } XCommandProcessor xCmdProc - = (XCommandProcessor)UnoRuntime.queryInterface( - XCommandProcessor.class, oObj ); + = UnoRuntime.queryInterface( + XCommandProcessor.class, oObj ); assure( "UCB does not implement mandatory interface XCommandProcessor!", xCmdProc != null); @@ -180,10 +180,9 @@ public final class GlobalTransfer_Test extends ComplexTestCase { } */ XInteractionSupplyName xSupplyName - = (XInteractionSupplyName) - UnoRuntime.queryInterface( - XInteractionSupplyName.class, - continuations[ i ] ); + = UnoRuntime.queryInterface( + XInteractionSupplyName.class, + continuations[ i ] ); if ( xSupplyName != null ) { String newname = "renamed_" + req.ClashingName; log.println( "Interaction Handler selects: NEW NAME: " |