1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Use interface Map.Entry.

This commit is contained in:
Andrew Chen 2011-02-09 11:06:01 -08:00
parent 14abb68772
commit a51daf9798

View File

@ -27,10 +27,8 @@ import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom; import java.security.SecureRandom;
import org.apache.commons.codec.binary.Hex; import org.apache.commons.codec.binary.Hex;
import java.util.ArrayList;
import java.util.Arrays; import java.util.*;
import java.util.HashMap;
import java.util.List;
public class SmtpTransport extends Transport { public class SmtpTransport extends Transport {
public static final int CONNECTION_SECURITY_NONE = 0; public static final int CONNECTION_SECURITY_NONE = 0;
@ -284,7 +282,7 @@ public class SmtpTransport extends Transport {
addressesOfCharset.add(addressString); addressesOfCharset.add(addressString);
} }
for (HashMap.Entry<String, ArrayList<String>> charsetAddressesMapEntry : for (Map.Entry<String, ArrayList<String>> charsetAddressesMapEntry :
charsetAddressesMap.entrySet()) { charsetAddressesMap.entrySet()) {
String charset = charsetAddressesMapEntry.getKey(); String charset = charsetAddressesMapEntry.getKey();
ArrayList<String> addressesOfCharset = charsetAddressesMapEntry.getValue(); ArrayList<String> addressesOfCharset = charsetAddressesMapEntry.getValue();