builders perform necessary casting of return type when setting tags

This commit is contained in:
Alasdair Hodge 2011-12-21 14:09:12 +00:00
parent 422bf8371a
commit 5dedb8b81c
3 changed files with 24 additions and 0 deletions

View File

@ -64,6 +64,14 @@ public class CreateDriveRequest extends Drive {
return Builder.class.cast(super.name(name)); return Builder.class.cast(super.name(name));
} }
/**
* {@inheritDoc}
*/
@Override
public Builder tags(Iterable<String> tags) {
return Builder.class.cast(super.tags(tags));
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@ -43,6 +43,14 @@ public class DriveData extends Drive {
return Builder.class.cast(super.name(name)); return Builder.class.cast(super.name(name));
} }
/**
* {@inheritDoc}
*/
@Override
public Builder tags(Iterable<String> tags) {
return Builder.class.cast(super.tags(tags));
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@ -141,6 +141,14 @@ public class DriveInfo extends Drive {
return Builder.class.cast(super.claimType(claimType)); return Builder.class.cast(super.claimType(claimType));
} }
/**
* {@inheritDoc}
*/
@Override
public Builder tags(Iterable<String> tags) {
return Builder.class.cast(super.tags(tags));
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */