activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r588731 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
Date Fri, 26 Oct 2007 18:16:17 GMT
Author: chirino
Date: Fri Oct 26 11:16:17 2007
New Revision: 588731

URL: http://svn.apache.org/viewvc?rev=588731&view=rev
Log:
fix bad cast

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java?rev=588731&r1=588730&r2=588731&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
Fri Oct 26 11:16:17 2007
@@ -380,9 +380,9 @@
         
         // Don't purge any data files past lastDataFile
         if( lastDataFile!=null ) {
-            for (Iterator iterator = unUsed.iterator(); iterator.hasNext();) {
-                DataFile dataFile = (DataFile)iterator.next();
-                if( dataFile.getDataFileId() >= lastDataFile ) {
+            for (Iterator<Integer> iterator = unUsed.iterator(); iterator.hasNext();)
{
+                Integer i = iterator.next();
+                if( i >= lastDataFile ) {
                     iterator.remove();
                 }
             }



Mime
View raw message