Polishing

This commit is contained in:
Juergen Hoeller
2021-12-15 17:58:28 +01:00
parent de10bb69cb
commit 1885ab3e07
4 changed files with 10 additions and 10 deletions

View File

@@ -124,7 +124,7 @@ public abstract class AbstractCachingConfiguration implements ImportAware {
public <T> Supplier<T> adapt(Function<CachingConfigurer, T> provider) {
return () -> {
CachingConfigurer cachingConfigurer = this.supplier.get();
return (cachingConfigurer != null) ? provider.apply(cachingConfigurer) : null;
return (cachingConfigurer != null ? provider.apply(cachingConfigurer) : null);
};
}