mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 03:32: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:
parent
855da35f3a
commit
00528f5d24
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user