Code style fixes

This commit is contained in:
cketti 2015-03-16 13:06:40 +01:00
parent 520e327775
commit 855da35f3a
1 changed files with 12 additions and 8 deletions

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