From 148a2a0437c22c57e1c4074b0ebcebb6b39d8424 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 1 May 2007 13:04:05 +0000 Subject: [PATCH] Amended patch for AMQ-1235 to not depend on Java 6 git-svn-id: https://svn.apache.org/repos/asf/activemq/branches/activemq-4.1@534050 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/thread/Scheduler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java b/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java index afbff4cf22..2a41cdb13d 100755 --- a/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java +++ b/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java @@ -52,8 +52,8 @@ public class Scheduler { ScheduledFuture ticket = (ScheduledFuture) clockTickets.remove(task); if( ticket!=null ) { ticket.cancel(false); - if (ticket instanceof RunnableScheduledFuture) - clockDaemon.remove((RunnableScheduledFuture) ticket); + if (ticket instanceof Runnable) + clockDaemon.remove((Runnable) ticket); } }