mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-30 23:00:09 -05:00
replaced unnecessary explicit iterator use with for-each loop
This commit is contained in:
parent
b942bf2889
commit
8ac942d828
@ -2347,11 +2347,7 @@ public class MessagingController implements Runnable {
|
|||||||
* upto speed with the remote UIDs of remote destination folder.
|
* upto speed with the remote UIDs of remote destination folder.
|
||||||
*/
|
*/
|
||||||
if (!localUidMap.isEmpty() && remoteUidMap != null && !remoteUidMap.isEmpty()) {
|
if (!localUidMap.isEmpty() && remoteUidMap != null && !remoteUidMap.isEmpty()) {
|
||||||
Set<Map.Entry<String, String>> remoteSrcEntries = remoteUidMap.entrySet();
|
for (Map.Entry<String, String> entry : remoteUidMap.entrySet()) {
|
||||||
Iterator<Map.Entry<String, String>> remoteSrcEntriesIterator = remoteSrcEntries.iterator();
|
|
||||||
|
|
||||||
while (remoteSrcEntriesIterator.hasNext()) {
|
|
||||||
Map.Entry<String, String> entry = remoteSrcEntriesIterator.next();
|
|
||||||
String remoteSrcUid = entry.getKey();
|
String remoteSrcUid = entry.getKey();
|
||||||
String localDestUid = localUidMap.get(remoteSrcUid);
|
String localDestUid = localUidMap.get(remoteSrcUid);
|
||||||
String newUid = entry.getValue();
|
String newUid = entry.getValue();
|
||||||
|
Loading…
Reference in New Issue
Block a user