diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-08-12 15:50:25 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-08-12 15:50:25 -0230 |
commit | 2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b (patch) | |
tree | b460e22e91a9fbb9cfb71631303963fa94dd2c9c /java/test/Ice/operations/OnewaysNewAMI.java | |
parent | ICE-5492 Tcp Loopback Fast Path for C#/C++ on Windows (diff) | |
download | ice-2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b.tar.bz2 ice-2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b.tar.xz ice-2f5c841cfce2ae5ff26e2e373c3ea7188da8b75b.zip |
Added eclipse project settings for java.
Fix lots of warnings in Ice for Java.
Diffstat (limited to 'java/test/Ice/operations/OnewaysNewAMI.java')
-rw-r--r-- | java/test/Ice/operations/OnewaysNewAMI.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/java/test/Ice/operations/OnewaysNewAMI.java b/java/test/Ice/operations/OnewaysNewAMI.java index c5534a34a39..55f17e4f25e 100644 --- a/java/test/Ice/operations/OnewaysNewAMI.java +++ b/java/test/Ice/operations/OnewaysNewAMI.java @@ -12,11 +12,7 @@ package test.Ice.operations; import test.Ice.operations.Test.Callback_MyClass_opIdempotent; import test.Ice.operations.Test.Callback_MyClass_opNonmutating; import test.Ice.operations.Test.Callback_MyClass_opVoid; -import test.Ice.operations.Test.MyClass; import test.Ice.operations.Test.MyClassPrx; -import test.Ice.operations.Test.MyClassPrxHelper; -import test.Ice.operations.Test.Callback_MyClass_opVoid; -import test.Ice.operations.Test.Callback_MyClass_opByte; class OnewaysNewAMI { @@ -83,25 +79,27 @@ class OnewaysNewAMI static void onewaysNewAMI(test.Util.Application app, MyClassPrx proxy) { - Ice.Communicator communicator = app.communicator(); MyClassPrx p = (MyClassPrx)proxy.ice_oneway(); { final Callback cb = new Callback(); Ice.Callback_Object_ice_ping callback = new Ice.Callback_Object_ice_ping() { + @Override public void response() { test(false); } + @Override public void exception(Ice.LocalException ex) { cb.noException(ex); } + @Override public void sent(boolean sentSynchronously) { @@ -149,18 +147,21 @@ class OnewaysNewAMI final Callback cb = new Callback(); Callback_MyClass_opVoid callback = new Callback_MyClass_opVoid() { + @Override public void response() { test(false); } + @Override public void exception(Ice.LocalException ex) { cb.noException(ex); } + @Override public void sent(boolean sentSynchronously) { @@ -175,18 +176,21 @@ class OnewaysNewAMI final Callback cb = new Callback(); Callback_MyClass_opIdempotent callback = new Callback_MyClass_opIdempotent() { + @Override public void response() { test(false); } + @Override public void exception(Ice.LocalException ex) { cb.noException(ex); } + @Override public void sent(boolean sentSynchronously) { @@ -201,18 +205,21 @@ class OnewaysNewAMI final Callback cb = new Callback(); Callback_MyClass_opNonmutating callback = new Callback_MyClass_opNonmutating() { + @Override public void response() { test(false); } + @Override public void exception(Ice.LocalException ex) { cb.noException(ex); } + @Override public void sent(boolean sentSynchronously) { |