Fix compiler warnings about missing switch cases for AuthType

As in 272d5c9 add explicit case statements to silence the
compiler warnings.

Change-Id: I37323409ea793eacd8249d4e9f477a66ef927049
This commit is contained in:
David Pursehouse
2012-12-03 11:17:34 +09:00
parent ec32548cdc
commit 09cca313d2
3 changed files with 33 additions and 0 deletions

View File

@@ -54,6 +54,15 @@ class InitAuth implements InitStep {
auth.string("SSO logout URL", "logoutUrl", null);
break;
}
case CLIENT_SSL_CERT_LDAP:
case CUSTOM_EXTENSION:
case DEVELOPMENT_BECOME_ANY_ACCOUNT:
case LDAP:
case LDAP_BIND:
case OPENID:
case OPENID_SSO:
break;
}
switch (auth_type) {
@@ -80,6 +89,14 @@ class InitAuth implements InitStep {
ldap.string("Group BaseDN", "groupBase", aBase);
break;
}
case CLIENT_SSL_CERT_LDAP:
case CUSTOM_EXTENSION:
case DEVELOPMENT_BECOME_ANY_ACCOUNT:
case HTTP:
case OPENID:
case OPENID_SSO:
break;
}
if (auth.getSecure("registerEmailPrivateKey") == null) {