diff options
author | Noel Grandin <noel@peralex.com> | 2013-04-17 14:59:35 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-19 07:52:08 +0000 |
commit | 8d87758d65e4a03271f76e354dfc84c1fcd5fe21 (patch) | |
tree | bc8f4f0df6981ad10fe1333db1a2b015ea079709 /ucb/qa | |
parent | Java cleanup, remove unnecessary casts (diff) | |
download | core-8d87758d65e4a03271f76e354dfc84c1fcd5fe21.tar.gz core-8d87758d65e4a03271f76e354dfc84c1fcd5fe21.zip |
Java cleanup, remove the rest of the unnecessary casts
Change-Id: Ia61d250f6b3711abc29569c5ece38a6f87e38daa
Reviewed-on: https://gerrit.libreoffice.org/3432
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'ucb/qa')
-rw-r--r-- | ucb/qa/complex/tdoc/_XChild.java | 2 | ||||
-rw-r--r-- | ucb/qa/complex/tdoc/_XCommandProcessor.java | 4 |
2 files changed, 3 insertions, 3 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(); |