DATAREST-1148 - Fix eager toString() call on domain object in ResourceStatus.

Originl pull request: #282.
This commit is contained in:
Simmo Saan
2017-10-12 15:40:19 +03:00
committed by Oliver Gierke
parent c8d8ed7e5f
commit 74e12a55b7

View File

@@ -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