Description
Since we have moved to JDK7, we can refactor the below if-else statement for String.
// TODO JDK7 SWITCH if (REGISTRY_CLIENT_AUTH_KERBEROS.equals(auth)) { access = AccessPolicy.sasl; } else if (REGISTRY_CLIENT_AUTH_DIGEST.equals(auth)) { access = AccessPolicy.digest; } else if (REGISTRY_CLIENT_AUTH_ANONYMOUS.equals(auth)) { access = AccessPolicy.anon; } else { throw new ServiceStateException(E_UNKNOWN_AUTHENTICATION_MECHANISM + "\"" + auth + "\""); }