> + */
> +package org.jclouds.openstack.neutron.v2.domain;
> +
> +import com.google.common.base.Objects;
> +import com.google.gson.annotations.SerializedName;
> +
> +/**
> + */
> +public class AddressPair {
> +
> +   @SerializedName("mac_address")
> +   protected final String macAddress;
> +   @SerializedName("ip_address")
> +   protected final String ipAddress;
> +
> +   protected AddressPair(String macAddress, String ipAddress) {

The annotation is needed if the AddressPair object is at some point returned by 
the api and has to be deserialized.
Even when it is not the case, I tend to prefer being consistent and add the 
"deserialization hints" whenever we add the "serialization ones". But it is 
just a matter of completeness and a personal feeling :)

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

Reply via email to