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:
parent
ec32548cdc
commit
09cca313d2
@ -72,6 +72,16 @@ public class MyIdentitiesScreen extends SettingsScreen {
|
||||
add(linkIdentity);
|
||||
break;
|
||||
}
|
||||
|
||||
case CLIENT_SSL_CERT_LDAP:
|
||||
case CUSTOM_EXTENSION:
|
||||
case DEVELOPMENT_BECOME_ANY_ACCOUNT:
|
||||
case HTTP:
|
||||
case HTTP_LDAP:
|
||||
case LDAP:
|
||||
case LDAP_BIND:
|
||||
case OPENID_SSO:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,6 +107,12 @@ class GerritConfigProvider implements Provider<GerritConfig> {
|
||||
config.setEditFullNameUrl(cfg.getString("auth", null, "editFullNameUrl"));
|
||||
config.setHttpPasswordUrl(cfg.getString("auth", null, "httpPasswordUrl"));
|
||||
break;
|
||||
|
||||
case CLIENT_SSL_CERT_LDAP:
|
||||
case DEVELOPMENT_BECOME_ANY_ACCOUNT:
|
||||
case HTTP:
|
||||
case HTTP_LDAP:
|
||||
break;
|
||||
}
|
||||
config.setUseContributorAgreements(cfg.getBoolean("auth",
|
||||
"contributoragreements", false));
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user