summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.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/DataInputStream.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/DataInputStream.java')
-rw-r--r--qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java15
1 files changed, 5 insertions, 10 deletions
diff --git a/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java b/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java
index ec16d4046d2e..63eef1a645b1 100644
--- a/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java
+++ b/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java
@@ -93,8 +93,7 @@ public class DataInputStream extends TestCase {
// creating and connecting DataOutputStream to the
// DataInputStream created through the Pipe
- XActiveDataSink xDataSink = (XActiveDataSink)
- UnoRuntime.queryInterface(XActiveDataSink.class, oObj);
+ XActiveDataSink xDataSink = UnoRuntime.queryInterface(XActiveDataSink.class, oObj);
XInterface oPipe = null;
try {
@@ -105,10 +104,8 @@ public class DataInputStream extends TestCase {
throw new StatusException("Couldn't create instance", e);
}
- XInputStream xPipeInput = (XInputStream)
- UnoRuntime.queryInterface(XInputStream.class, oPipe);
- XOutputStream xPipeOutput = (XOutputStream)
- UnoRuntime.queryInterface(XOutputStream.class, oPipe);
+ XInputStream xPipeInput = UnoRuntime.queryInterface(XInputStream.class, oPipe);
+ XOutputStream xPipeOutput = UnoRuntime.queryInterface(XOutputStream.class, oPipe);
XInterface oDataOutput = null;
try {
@@ -119,10 +116,8 @@ public class DataInputStream extends TestCase {
throw new StatusException("Couldn't create instance", e);
}
- XDataOutputStream xDataOutput = (XDataOutputStream)
- UnoRuntime.queryInterface(XDataOutputStream.class, oDataOutput) ;
- XActiveDataSource xDataSource = (XActiveDataSource)
- UnoRuntime.queryInterface(XActiveDataSource.class, oDataOutput) ;
+ XDataOutputStream xDataOutput = UnoRuntime.queryInterface(XDataOutputStream.class, oDataOutput) ;
+ XActiveDataSource xDataSource = UnoRuntime.queryInterface(XActiveDataSource.class, oDataOutput) ;
xDataSource.setOutputStream(xPipeOutput) ;
xDataSink.setInputStream(xPipeInput) ;