mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
replaced for with for-each loop
This commit is contained in:
parent
8627a3e702
commit
e75dd7df39
@ -1476,11 +1476,10 @@ public class ImapStore extends Store {
|
|||||||
checkOpen(); //only need READ access
|
checkOpen(); //only need READ access
|
||||||
List<String> uids = new ArrayList<String>(messages.length);
|
List<String> uids = new ArrayList<String>(messages.length);
|
||||||
HashMap<String, Message> messageMap = new HashMap<String, Message>();
|
HashMap<String, Message> messageMap = new HashMap<String, Message>();
|
||||||
for (int i = 0, count = messages.length; i < count; i++) {
|
for (Message msg : messages) {
|
||||||
|
String uid = msg.getUid();
|
||||||
String uid = messages[i].getUid();
|
|
||||||
uids.add(uid);
|
uids.add(uid);
|
||||||
messageMap.put(uid, messages[i]);
|
messageMap.put(uid, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user