mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 05:02:26 -05:00
Code style fixes
This commit is contained in:
parent
520e327775
commit
855da35f3a
@ -1,5 +1,6 @@
|
|||||||
package com.fsck.k9.account;
|
package com.fsck.k9.account;
|
||||||
|
|
||||||
|
|
||||||
import com.fsck.k9.Account.DeletePolicy;
|
import com.fsck.k9.Account.DeletePolicy;
|
||||||
import com.fsck.k9.mail.ConnectionSecurity;
|
import com.fsck.k9.mail.ConnectionSecurity;
|
||||||
import com.fsck.k9.mail.ServerSettings.Type;
|
import com.fsck.k9.mail.ServerSettings.Type;
|
||||||
@ -7,6 +8,7 @@ import com.fsck.k9.mail.ServerSettings.Type;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deals with logic surrounding account creation.
|
* Deals with logic surrounding account creation.
|
||||||
* <p/>
|
* <p/>
|
||||||
@ -28,14 +30,16 @@ public class AccountCreator {
|
|||||||
|
|
||||||
public static int getDefaultPort(ConnectionSecurity securityType, Type storeType) {
|
public static int getDefaultPort(ConnectionSecurity securityType, Type storeType) {
|
||||||
switch (securityType) {
|
switch (securityType) {
|
||||||
case NONE:
|
case NONE:
|
||||||
case STARTTLS_REQUIRED:
|
case STARTTLS_REQUIRED: {
|
||||||
return storeType.defaultPort;
|
return storeType.defaultPort;
|
||||||
case SSL_TLS_REQUIRED:
|
}
|
||||||
return storeType.defaultTlsPort;
|
case SSL_TLS_REQUIRED: {
|
||||||
default:
|
return storeType.defaultTlsPort;
|
||||||
throw new AssertionError("Unhandled ConnectionSecurity type encountered: " + securityType);
|
}
|
||||||
|
default: {
|
||||||
|
throw new AssertionError("Unhandled ConnectionSecurity type encountered: " + securityType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user