DATAREST-1148 - Fix eager toString() call on domain object in ResourceStatus.
Originl pull request: #282.
This commit is contained in:
committed by
Oliver Gierke
parent
c8d8ed7e5f
commit
74e12a55b7
@@ -62,7 +62,7 @@ class ResourceStatus {
|
||||
Assert.notNull(domainObject, "Domain object must not be null!");
|
||||
Assert.notNull(entity, "PersistentEntity must not be null!");
|
||||
Assert.isTrue(entity.getType().isInstance(domainObject),
|
||||
String.format(INVALID_DOMAIN_OBJECT, domainObject, entity.getType()));
|
||||
() -> String.format(INVALID_DOMAIN_OBJECT, domainObject, entity.getType()));
|
||||
|
||||
// Check ETag for If-Non-Match
|
||||
|
||||
|
||||
Reference in New Issue
Block a user