fix bad cast

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@588731 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2007-10-26 18:16:17 +00:00
parent 3a4a360d3f
commit 0e7162509d
1 changed files with 3 additions and 3 deletions

View File

@ -380,9 +380,9 @@ public final class AsyncDataManager {
// Don't purge any data files past lastDataFile // Don't purge any data files past lastDataFile
if( lastDataFile!=null ) { if( lastDataFile!=null ) {
for (Iterator iterator = unUsed.iterator(); iterator.hasNext();) { for (Iterator<Integer> iterator = unUsed.iterator(); iterator.hasNext();) {
DataFile dataFile = (DataFile)iterator.next(); Integer i = iterator.next();
if( dataFile.getDataFileId() >= lastDataFile ) { if( i >= lastDataFile ) {
iterator.remove(); iterator.remove();
} }
} }