1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Move throw statement outside of switch body

This way static analysis can detect when we're missing a switch case.
This commit is contained in:
cketti 2015-03-16 13:11:01 +01:00
parent 855da35f3a
commit 00528f5d24

View File

@ -37,9 +37,8 @@ public class AccountCreator {
case SSL_TLS_REQUIRED: { case SSL_TLS_REQUIRED: {
return storeType.defaultTlsPort; return storeType.defaultTlsPort;
} }
default: { }
throw new AssertionError("Unhandled ConnectionSecurity type encountered: " + securityType); throw new AssertionError("Unhandled ConnectionSecurity type encountered: " + securityType);
} }
}
}
} }