mirror of https://github.com/moparisthebest/k-9
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:
parent
855da35f3a
commit
00528f5d24
|
@ -37,9 +37,8 @@ public class AccountCreator {
|
|||
case SSL_TLS_REQUIRED: {
|
||||
return storeType.defaultTlsPort;
|
||||
}
|
||||
default: {
|
||||
throw new AssertionError("Unhandled ConnectionSecurity type encountered: " + securityType);
|
||||
}
|
||||
}
|
||||
|
||||
throw new AssertionError("Unhandled ConnectionSecurity type encountered: " + securityType);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue