mirror of https://github.com/apache/jclouds.git
Issue 695: type and name are optional. Causes difficulties with using right class type and if attribute appears in the data need to change the client class struture.
This commit is contained in:
parent
d4c1026d1b
commit
e505c88d60
|
@ -83,7 +83,7 @@ public class BaseNamedResource<T extends BaseNamedResource<T>> extends BaseResou
|
||||||
|
|
||||||
protected BaseNamedResource(URI href, String type, String name) {
|
protected BaseNamedResource(URI href, String type, String name) {
|
||||||
super(href, type);
|
super(href, type);
|
||||||
this.name = checkNotNull(name, "name");
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected BaseNamedResource() {
|
protected BaseNamedResource() {
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class BaseResource<T extends BaseResource<T>> {
|
||||||
protected URI href;
|
protected URI href;
|
||||||
|
|
||||||
protected BaseResource(URI href, String type) {
|
protected BaseResource(URI href, String type) {
|
||||||
this.type = checkNotNull(type, "type");
|
this.type = type;
|
||||||
this.href = checkNotNull(href, "href");
|
this.href = checkNotNull(href, "href");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue