> +   protected String reservedIPName;
> +
> +   @Override
> +   public AzureComputeArmTemplateOptions clone() {
> +      final AzureComputeArmTemplateOptions options = new 
> AzureComputeArmTemplateOptions();
> +      copyTo(options);
> +      return options;
> +   }
> +
> +   @Override
> +   public void copyTo(final TemplateOptions to) {
> +      super.copyTo(to);
> +      if (to instanceof AzureComputeArmTemplateOptions) {
> +         final AzureComputeArmTemplateOptions eTo = 
> AzureComputeArmTemplateOptions.class.cast(to);
> +         eTo.virtualNetworkName(virtualNetworkName);
> +         if (!subnetNames.isEmpty()) {

A clone operation should be consistent. Why not cloning an empty list? If not, 
the result is not a clone, but an aggregate.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/273/files/74f8e9bf66e7427298c5c3c9567aa7d8284e0987#r64475077

Reply via email to