From 5dedb8b81c0780d71bb4169c3f14577593ac0b5f Mon Sep 17 00:00:00 2001 From: Alasdair Hodge Date: Wed, 21 Dec 2011 14:09:12 +0000 Subject: [PATCH] builders perform necessary casting of return type when setting tags --- .../org/jclouds/cloudsigma/domain/CreateDriveRequest.java | 8 ++++++++ .../java/org/jclouds/cloudsigma/domain/DriveData.java | 8 ++++++++ .../java/org/jclouds/cloudsigma/domain/DriveInfo.java | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/CreateDriveRequest.java b/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/CreateDriveRequest.java index 30db029c76..f631823dcb 100644 --- a/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/CreateDriveRequest.java +++ b/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/CreateDriveRequest.java @@ -64,6 +64,14 @@ public class CreateDriveRequest extends Drive { return Builder.class.cast(super.name(name)); } + /** + * {@inheritDoc} + */ + @Override + public Builder tags(Iterable tags) { + return Builder.class.cast(super.tags(tags)); + } + /** * {@inheritDoc} */ diff --git a/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/DriveData.java b/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/DriveData.java index 7d0a561195..4a01d831d1 100644 --- a/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/DriveData.java +++ b/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/DriveData.java @@ -43,6 +43,14 @@ public class DriveData extends Drive { return Builder.class.cast(super.name(name)); } + /** + * {@inheritDoc} + */ + @Override + public Builder tags(Iterable tags) { + return Builder.class.cast(super.tags(tags)); + } + /** * {@inheritDoc} */ diff --git a/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/DriveInfo.java b/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/DriveInfo.java index 0738d86727..906f414cfc 100644 --- a/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/DriveInfo.java +++ b/apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/DriveInfo.java @@ -141,6 +141,14 @@ public class DriveInfo extends Drive { return Builder.class.cast(super.claimType(claimType)); } + /** + * {@inheritDoc} + */ + @Override + public Builder tags(Iterable tags) { + return Builder.class.cast(super.tags(tags)); + } + /** * {@inheritDoc} */