mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25: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
|
||||
public JCacheManagerCustomizer petclinicCacheConfigurationCustomizer() {
|
||||
return cm -> {
|
||||
cm.createCache("vets", cacheConfiguration());
|
||||
};
|
||||
return cm -> cm.createCache("vets", cacheConfiguration());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue