> + * Decides what type of credentials createContext is supplied with.
> + */
> +public enum CredentialType {
> +
> +   BEARER_TOKEN_CREDENTIALS,
> +
> +   SERVICE_ACCOUNT_CREDENTIALS;
> +
> +   @Override
> +   public String toString() {
> +      return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, name());
> +   }
> +
> +   public static CredentialType fromValue(String credentialType) {
> +      return valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, 
> checkNotNull(credentialType,
> +            "credentialType")));

Is the null check needed? I'm assuming this will fail with an appropriate error 
otherwise anyway?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/34/files#r15602932

Reply via email to