mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Fixed code smell for single-line lambda expression
Lambdas containing only one statement should not nest this statement in a block RSPEC-1602(https://rules.sonarsource.com/java/RSPEC-1602)
This commit is contained in:
parent
c42f95980a
commit
ee7c68ff3b
1 changed files with 1 additions and 3 deletions
|
@ -34,9 +34,7 @@ class CacheConfiguration {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public JCacheManagerCustomizer petclinicCacheConfigurationCustomizer() {
|
public JCacheManagerCustomizer petclinicCacheConfigurationCustomizer() {
|
||||||
return cm -> {
|
return cm -> cm.createCache("vets", cacheConfiguration());
|
||||||
cm.createCache("vets", cacheConfiguration());
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue