mirror of https://github.com/apache/jclouds.git
fix clone method and xmlElement name
This commit is contained in:
parent
9d2923e96c
commit
24725cf88c
|
@ -137,7 +137,7 @@ public abstract class EntityType<T extends EntityType<T>> extends ResourceType<T
|
|||
|
||||
@XmlElement(name = "Description")
|
||||
private String description;
|
||||
@XmlElement(name = "TasksInProgress")
|
||||
@XmlElement(namespace = VCLOUD_1_5_NS, name = "Tasks")
|
||||
private TasksInProgress tasksInProgress;
|
||||
@XmlAttribute
|
||||
private String id;
|
||||
|
@ -206,9 +206,7 @@ public abstract class EntityType<T extends EntityType<T>> extends ResourceType<T
|
|||
if (o == null || getClass() != o.getClass())
|
||||
return false;
|
||||
EntityType<?> that = EntityType.class.cast(o);
|
||||
return super.equals(that) &&
|
||||
equal(this.description, that.description) &&
|
||||
equal(this.name, that.name);
|
||||
return super.clone(that);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -253,7 +253,7 @@ public class Media extends ResourceEntityType<Media> {
|
|||
return false;
|
||||
Media that = Media.class.cast(o);
|
||||
return super.clone(that) &&
|
||||
equal(this.owner, that.owner) && equal(this.imageType, that.imageType) && equal(this.size, that.size);
|
||||
equal(this.imageType, that.imageType) && equal(this.size, that.size);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue