Polishing

This commit is contained in:
Juergen Hoeller
2018-07-31 21:37:40 +02:00
parent a4be54d760
commit fd75600c26
9 changed files with 63 additions and 64 deletions

View File

@@ -149,7 +149,7 @@ public class DefaultJCacheOperationSource extends AnnotationJCacheOperationSourc
@Override
protected <T> T getBean(Class<T> type) {
Assert.state(this.beanFactory != null, "BeanFactory required for resolution of [" + type + "]");
Assert.state(this.beanFactory != null, () -> "BeanFactory required for resolution of [" + type + "]");
try {
return this.beanFactory.getBean(type);
}