You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Ignasi Barrera <no...@github.com> on 2015/03/10 22:14:34 UTC

Re: [jclouds-labs] [JCLOUDS-833] Shipyard ServiceKeys API (#149)

> +
> +import org.jclouds.json.SerializedNames;
> +
> +import com.google.auto.value.AutoValue;
> +
> +@AutoValue
> +public abstract class CreateServiceKey {
> +   
> +   public abstract String description();
> +      
> +   CreateServiceKey() {
> +   }
> +
> +   @SerializedNames({ "description" })
> +   public static CreateServiceKey create(String description) {
> +      if (description == null) description = "";

Do we really want to do this instead of declaring the field `@Nullable`? What is the purpose of this?

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