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
1 changed files with 2 additions and 3 deletions

View File

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