You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by js...@apache.org on 2007/05/01 15:04:06 UTC

svn commit: r534050 - /activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java

Author: jstrachan
Date: Tue May  1 06:04:05 2007
New Revision: 534050

URL: http://svn.apache.org/viewvc?view=rev&rev=534050
Log:
Amended patch for AMQ-1235 to not depend on Java 6

Modified:
    activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java

Modified: activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java?view=diff&rev=534050&r1=534049&r2=534050
==============================================================================
--- activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java (original)
+++ activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java Tue May  1 06:04:05 2007
@@ -52,8 +52,8 @@
         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);            
         }
     }