Avoid creating message arguments to Assert.isABC calls

See https://github.com/spring-projects/spring-framework/commit/67f184293b94c076b0474231f739a74f42d5ffa8
This commit is contained in:
Vladimir Sitnikov
2018-02-13 12:31:49 +01:00
committed by Juergen Hoeller
parent b449928691
commit 659f13be1c
8 changed files with 10 additions and 9 deletions
@@ -46,7 +46,7 @@ class CacheResolverAdapter implements CacheResolver {
}
CacheInvocationContext<?> cacheInvocationContext = (CacheInvocationContext<?>) context;
javax.cache.Cache<Object, Object> cache = target.resolveCache(cacheInvocationContext);
Assert.notNull(cache, "Cannot resolve cache for '" + context + "' using '" + target + "'");
Assert.notNull(cache, () -> "Cannot resolve cache for '" + context + "' using '" + target + "'");
return Collections.singleton(new JCacheCache(cache));
}