From 52af596bf667ba6e3026e5fa73de2347e06e55d6 Mon Sep 17 00:00:00 2001 From: mdb Date: Tue, 4 Jul 2006 22:39:22 +0000 Subject: [PATCH] git-svn-id: https://samskivert.googlecode.com/svn/trunk@1867 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/BasicRunQueue.java | 6 +++--- src/java/com/samskivert/util/Invoker.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/com/samskivert/util/BasicRunQueue.java b/src/java/com/samskivert/util/BasicRunQueue.java index a64f0a38..c87f8aea 100644 --- a/src/java/com/samskivert/util/BasicRunQueue.java +++ b/src/java/com/samskivert/util/BasicRunQueue.java @@ -17,7 +17,7 @@ public class BasicRunQueue extends LoopingThread public BasicRunQueue () { super("RunQueue"); - _queue = new Queue(); + _queue = new Queue(); } // documentation inherited from interface @@ -35,7 +35,7 @@ public class BasicRunQueue extends LoopingThread // documentation inherited protected void iterate () { - Runnable r = (Runnable) _queue.get(); + Runnable r = _queue.get(); try { r.run(); @@ -56,5 +56,5 @@ public class BasicRunQueue extends LoopingThread } /** The queue of things to run. */ - protected Queue _queue; + protected Queue _queue; } diff --git a/src/java/com/samskivert/util/Invoker.java b/src/java/com/samskivert/util/Invoker.java index 76410a9f..7c7fac3d 100644 --- a/src/java/com/samskivert/util/Invoker.java +++ b/src/java/com/samskivert/util/Invoker.java @@ -116,7 +116,7 @@ public class Invoker extends LoopingThread public void iterate () { // pop the next item off of the queue - Unit unit = (Unit) _queue.get(); + Unit unit = _queue.get(); long start; if (PERF_TRACK) { @@ -226,7 +226,7 @@ public class Invoker extends LoopingThread } /** The invoker's queue of units to be executed. */ - protected Queue _queue = new Queue(); + protected Queue _queue = new Queue(); /** The result receiver with which we're working. */ protected RunQueue _receiver;