> + public abstract RoleInfo role();
> +
> + CreateAccount() {
> + }
> +
> + @SerializedNames({ "username", "password", "role"})
> + public static CreateAccount create(String username, String password,
> RoleInfo role) {
> + checkArgument(username.length() > 0, "username must not be empty
> string");
> + checkArgument(password.length() > 0, "password must not be empty
> string");
> + if (role == null) role = RoleInfo.create("user", null);
> + return new AutoValue_CreateAccount(username, password, role);
> + }
> +
> + @SerializedNames({ "username", "password" })
> + public static CreateAccount create(String username, String password) {
> + return CreateAccount.create(username, password, null);
In my last comment I suggested to try removing the annotation from this method,
leaving only one method with the `@SerializedNames` annotation in the class.
Could you try that?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/165/files#r30278205