Use auto-unboxing when iterating over a List<Long>

This commit is contained in:
cketti 2012-07-07 15:36:43 +02:00
parent 08c6c63b31
commit c359eb3cb7
1 changed files with 2 additions and 3 deletions

View File

@ -3106,11 +3106,10 @@ public class ImapStore extends Store {
List<Long> msgSeqs = new ArrayList<Long>(msgSeqUidMap.keySet());
Collections.sort(msgSeqs); // Have to do comparisons in order because of msgSeq reductions
for (long msgSeqNumI : msgSeqs) {
for (long msgSeqNum : msgSeqs) {
if (K9.DEBUG) {
Log.v(K9.LOG_TAG, "Comparing EXPUNGEd msgSeq " + msgSeq + " to " + msgSeqNumI);
Log.v(K9.LOG_TAG, "Comparing EXPUNGEd msgSeq " + msgSeq + " to " + msgSeqNum);
}
long msgSeqNum = msgSeqNumI;
if (msgSeqNum == msgSeq) {
String uid = msgSeqUidMap.get(msgSeqNum);
if (K9.DEBUG) {