diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-01-30 06:15:20 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-01-30 06:15:20 -0800 |
commit | f3c3029ff651d294a1a0df0e79e72771307310fc (patch) | |
tree | 1f061a96f5f46051b6daf45ccbdb63ebd2cdd746 /java/demo/Ice/async/WorkQueue.java | |
parent | Fixed and moved fixVersion.py/fixCopyright.py (diff) | |
download | ice-f3c3029ff651d294a1a0df0e79e72771307310fc.tar.bz2 ice-f3c3029ff651d294a1a0df0e79e72771307310fc.tar.xz ice-f3c3029ff651d294a1a0df0e79e72771307310fc.zip |
using Java5 types in Ice core; general cleanup
Diffstat (limited to 'java/demo/Ice/async/WorkQueue.java')
-rw-r--r-- | java/demo/Ice/async/WorkQueue.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/demo/Ice/async/WorkQueue.java b/java/demo/Ice/async/WorkQueue.java index d7336fbb778..e523330f025 100644 --- a/java/demo/Ice/async/WorkQueue.java +++ b/java/demo/Ice/async/WorkQueue.java @@ -68,10 +68,10 @@ public class WorkQueue extends Thread // // Throw exception for any outstanding requests. // - java.util.Iterator p = _callbacks.iterator(); + java.util.Iterator<CallbackEntry> p = _callbacks.iterator(); while(p.hasNext()) { - CallbackEntry entry = (CallbackEntry)p.next(); + CallbackEntry entry = p.next(); entry.cb.ice_exception(new RequestCanceledException()); } } @@ -104,12 +104,12 @@ public class WorkQueue extends Thread } public synchronized void - destroy() + _destroy() // Thread.destroy is deprecated. { _done = true; notify(); } - private java.util.LinkedList _callbacks = new java.util.LinkedList(); + private java.util.LinkedList<CallbackEntry> _callbacks = new java.util.LinkedList<CallbackEntry>(); private boolean _done = false; } |