> +
> +import com.google.auto.value.AutoValue;
> +
> +@AutoValue
> +public abstract class Leader {
> +
> +     public abstract String leader();
> +     
> +     public abstract Map<String, Follower> followers();
> +     
> +     Leader() {
> +     }
> +     
> +     @SerializedNames({"leader", "followers"})
> +     public static Leader create(String leader, Map<String, Follower> 
> followers) {
> +             return new AutoValue_Leader(leader, followers);

Make the map immutable with `ImmutableMap.copyOf`.

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

Reply via email to