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:
Jason King 2011-12-20 11:10:14 +00:00
parent d4c1026d1b
commit e505c88d60
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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");
} }