diff options
author | Noel Grandin <noel@peralex.com> | 2013-04-17 13:54:28 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-19 07:51:41 +0000 |
commit | d62425cc27e04a3237cfec2ea2663b8b11284ec8 (patch) | |
tree | bc96f74a3460377c4d368ba2d3cbd56b2e8baa89 /bridges | |
parent | a79d43dcd7989ee927de1b8c69ebc2981cc7166e (diff) |
Java cleanup, remove unnecessary casts
Change-Id: Id12089bc7df16631737e6acaee0973fb91dd953f
Reviewed-on: https://gerrit.libreoffice.org/3431
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/test/java_uno/acquire/TestAcquire.java | 12 | ||||
-rw-r--r-- | bridges/test/testclient.java | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/bridges/test/java_uno/acquire/TestAcquire.java b/bridges/test/java_uno/acquire/TestAcquire.java index 33d3605e1827..0aa2b0f639e7 100644 --- a/bridges/test/java_uno/acquire/TestAcquire.java +++ b/bridges/test/java_uno/acquire/TestAcquire.java @@ -65,17 +65,17 @@ public final class TestAcquire { WaitUnreachable u; u = new WaitUnreachable(new XInterface() {}); - test.setInterfaceToInterface((XInterface) u.get()); + test.setInterfaceToInterface(u.get()); receive(test.getInterfaceFromInterface()); test.clearInterface(); u.waitUnreachable(); u = new WaitUnreachable(new XBase() {}); - test.setInterfaceToInterface((XBase) u.get()); + test.setInterfaceToInterface(u.get()); receive(test.getInterfaceFromInterface()); test.clearInterface(); u.waitUnreachable(); u = new WaitUnreachable(new XDerived() {}); - test.setInterfaceToInterface((XDerived) u.get()); + test.setInterfaceToInterface(u.get()); receive(test.getInterfaceFromInterface()); test.clearInterface(); u.waitUnreachable(); @@ -126,13 +126,13 @@ public final class TestAcquire { u.waitUnreachable(); u = new WaitUnreachable(new XInterface() {}); - receive(test.roundTripInterfaceToInterface((XInterface) u.get())); + receive(test.roundTripInterfaceToInterface(u.get())); u.waitUnreachable(); u = new WaitUnreachable(new XBase() {}); - receive(test.roundTripInterfaceToInterface((XBase) u.get())); + receive(test.roundTripInterfaceToInterface(u.get())); u.waitUnreachable(); u = new WaitUnreachable(new XDerived() {}); - receive(test.roundTripInterfaceToInterface((XDerived) u.get())); + receive(test.roundTripInterfaceToInterface(u.get())); u.waitUnreachable(); u = new WaitUnreachable(new XBase() {}); diff --git a/bridges/test/testclient.java b/bridges/test/testclient.java index 135030c5fa80..e52b70385845 100644 --- a/bridges/test/testclient.java +++ b/bridges/test/testclient.java @@ -117,7 +117,7 @@ public class testclient { System.out.println( "after connect" ); String rootOid = "OfficeDaemon.Factory"; - com.sun.star.uno.IBridge bridge = (IBridge ) UnoRuntime.getBridgeByName( + com.sun.star.uno.IBridge bridge = UnoRuntime.getBridgeByName( "java", null, "remote", |