mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
astyle
This commit is contained in:
parent
6550151684
commit
3d090e9626
@ -819,7 +819,8 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
|
||||
return true;
|
||||
}
|
||||
|
||||
private static String[][] USED_LIBRARIES = new String[][] {
|
||||
private static String[][] USED_LIBRARIES = new String[][]
|
||||
{
|
||||
new String[] {"jutf7", "http://jutf7.sourceforge.net/"},
|
||||
new String[] {"JZlib", "http://www.jcraft.com/jzlib/"},
|
||||
new String[] {"Commons IO", "http://commons.apache.org/io/"},
|
||||
|
@ -1288,6 +1288,9 @@ public class LocalStore extends Store implements Serializable
|
||||
|
||||
public class LocalFolder extends Folder implements Serializable
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -1973296520918624767L;
|
||||
private String mName = null;
|
||||
private long mFolderId = -1;
|
||||
|
@ -153,8 +153,10 @@ public class SmtpTransport extends Transport
|
||||
try
|
||||
{
|
||||
InetAddress[] addresses = InetAddress.getAllByName(mHost);
|
||||
for (int i = 0; i < addresses.length; i++) {
|
||||
try {
|
||||
for (int i = 0; i < addresses.length; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
SocketAddress socketAddress = new InetSocketAddress(addresses[i], mPort);
|
||||
if (mConnectionSecurity == CONNECTION_SECURITY_SSL_REQUIRED ||
|
||||
mConnectionSecurity == CONNECTION_SECURITY_SSL_OPTIONAL)
|
||||
@ -174,8 +176,11 @@ public class SmtpTransport extends Transport
|
||||
mSocket = new Socket();
|
||||
mSocket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT);
|
||||
}
|
||||
} catch (ConnectException e) {
|
||||
if (i < (addresses.length - 1)) {
|
||||
}
|
||||
catch (ConnectException e)
|
||||
{
|
||||
if (i < (addresses.length - 1))
|
||||
{
|
||||
// there are still other addresses for that host to try
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user