mirror of https://github.com/apache/activemq.git
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:
parent
3a4a360d3f
commit
0e7162509d
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue