replaced unnecessary explicit iterator use with for-each loop

This commit is contained in:
András Veres-Szentkirályi 2014-02-15 21:43:55 +01:00
parent b942bf2889
commit 8ac942d828
1 changed files with 1 additions and 5 deletions

View File

@ -2347,11 +2347,7 @@ public class MessagingController implements Runnable {
* upto speed with the remote UIDs of remote destination folder.
*/
if (!localUidMap.isEmpty() && remoteUidMap != null && !remoteUidMap.isEmpty()) {
Set<Map.Entry<String, String>> remoteSrcEntries = remoteUidMap.entrySet();
Iterator<Map.Entry<String, String>> remoteSrcEntriesIterator = remoteSrcEntries.iterator();
while (remoteSrcEntriesIterator.hasNext()) {
Map.Entry<String, String> entry = remoteSrcEntriesIterator.next();
for (Map.Entry<String, String> entry : remoteUidMap.entrySet()) {
String remoteSrcUid = entry.getKey();
String localDestUid = localUidMap.get(remoteSrcUid);
String newUid = entry.getValue();