summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-04-17 14:59:35 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-04-19 07:52:08 +0000
commit8d87758d65e4a03271f76e354dfc84c1fcd5fe21 (patch)
treebc8f4f0df6981ad10fe1333db1a2b015ea079709 /qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java
parentd62425cc27e04a3237cfec2ea2663b8b11284ec8 (diff)
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 'qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java')
-rw-r--r--qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java b/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java
index 177ce4bd0001..85cc334414cc 100644
--- a/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java
+++ b/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java
@@ -93,11 +93,9 @@ public class DataOutputStream extends TestCase {
oObj = (XInterface) oInterface;
- final XOutputStream xPipeOutput = (XOutputStream)
- UnoRuntime.queryInterface(XOutputStream.class, oPipe);
+ final XOutputStream xPipeOutput = UnoRuntime.queryInterface(XOutputStream.class, oPipe);
- XActiveDataSource xDataSource = (XActiveDataSource)
- UnoRuntime.queryInterface(XActiveDataSource.class, oObj);
+ XActiveDataSource xDataSource = UnoRuntime.queryInterface(XActiveDataSource.class, oObj);
xDataSource.setOutputStream(xPipeOutput);
@@ -124,8 +122,7 @@ public class DataOutputStream extends TestCase {
//add relation for io.XOutputStream
final XMultiServiceFactory msf = xMSF;
- final XInputStream xPipeInput = (XInputStream)
- UnoRuntime.queryInterface(XInputStream.class, oPipe);
+ final XInputStream xPipeInput = UnoRuntime.queryInterface(XInputStream.class, oPipe);
tEnv.addObjRelation("XOutputStream.StreamChecker",
new ifc.io._XOutputStream.StreamChecker() {
XInputStream xInStream = null;
@@ -149,15 +146,14 @@ public class DataOutputStream extends TestCase {
try {
Object oInStream = msf.createInstance(
"com.sun.star.io.DataInputStream");
- xInStream = (XInputStream) UnoRuntime.queryInterface
+ xInStream = UnoRuntime.queryInterface
(XInputStream.class, oInStream);
} catch(com.sun.star.uno.Exception e) {
return null;
}
- XActiveDataSink xDataSink = (XActiveDataSink)
- UnoRuntime.queryInterface(
- XActiveDataSink.class, xInStream);
+ XActiveDataSink xDataSink = UnoRuntime.queryInterface(
+ XActiveDataSink.class, xInStream);
xDataSink.setInputStream(xPipeInput);
return xInStream;