1
0
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:
cketti 2015-03-16 13:06:40 +01:00
parent 520e327775
commit 855da35f3a

View File

@ -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);
}
}
}
}