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