> +   @ConstructorProperties({
> +           "id", "uuid", "capacity", "units", "typeId", "description", 
> "name", "storageRepositoryId", "softwareReferences"
> +   })
> +   public VirtualDiskImage(int id, String uuid, float capacity, String 
> units, int typeId, String description,
> +                           String name, int storageRepositoryId, @Nullable 
> Set<VirtualDiskImageSoftware> softwareReferences) {
> +      this.id = id;
> +      this.uuid = uuid;
> +      this.capacity = capacity;
> +      this.units = units;
> +      this.typeId = typeId;
> +      this.description = description;
> +      this.name = name;
> +      this.storageRepositoryId = storageRepositoryId;
> +      this.softwareReferences = softwareReferences  == null ? 
> ImmutableSet.<VirtualDiskImageSoftware>of() :
> +              ImmutableSet.copyOf(softwareReferences);
> +

Same again, add null checks for all mandatory properties.

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

Reply via email to