Formatting
This commit is contained in:
@@ -75,8 +75,7 @@ public class CacheAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
public CacheManagerValidator cacheAutoConfigurationValidator(
|
||||
CacheProperties cacheProperties,
|
||||
ObjectProvider<CacheManager> cacheManager) {
|
||||
CacheProperties cacheProperties, ObjectProvider<CacheManager> cacheManager) {
|
||||
return new CacheManagerValidator(cacheProperties, cacheManager);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,8 +115,8 @@ public class CassandraDataAutoConfiguration {
|
||||
session.setKeyspaceName(this.properties.getKeyspaceName());
|
||||
String name = this.propertyResolver.getProperty("schemaAction",
|
||||
SchemaAction.NONE.name());
|
||||
SchemaAction schemaAction = SchemaAction.valueOf(
|
||||
name.toUpperCase(Locale.ENGLISH));
|
||||
SchemaAction schemaAction = SchemaAction
|
||||
.valueOf(name.toUpperCase(Locale.ENGLISH));
|
||||
session.setSchemaAction(schemaAction);
|
||||
return session;
|
||||
}
|
||||
|
||||
@@ -120,6 +120,7 @@ public class IntegrationAutoConfiguration {
|
||||
@Configuration
|
||||
@EnableIntegrationManagement(defaultCountsEnabled = "true", defaultStatsEnabled = "true")
|
||||
protected static class EnableIntegrationManagementConfiguration {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -77,6 +77,7 @@ class IntegrationAutoConfigurationScanRegistrar extends IntegrationComponentScan
|
||||
}
|
||||
return attributes;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@IntegrationComponentScan
|
||||
|
||||
@@ -185,6 +185,7 @@ public class OAuth2RestOperationsConfiguration {
|
||||
|
||||
@Conditional(ClientCredentialsCondition.class)
|
||||
static class ClientCredentialsActivated {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -200,10 +201,12 @@ public class OAuth2RestOperationsConfiguration {
|
||||
|
||||
@ConditionalOnProperty(prefix = "security.oauth2.client", name = "grant-type", havingValue = "client_credentials", matchIfMissing = false)
|
||||
static class ClientCredentialsConfigured {
|
||||
|
||||
}
|
||||
|
||||
@ConditionalOnNotWebApplication
|
||||
static class NoWebApplication {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -292,6 +292,7 @@ public class ResourceServerProperties implements Validator, BeanFactoryAware {
|
||||
public void setKeySetUri(String keySetUri) {
|
||||
this.keySetUri = keySetUri;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -234,6 +234,7 @@ public class ResourceServerTokenServicesConfiguration {
|
||||
public TokenStore jwkTokenStore() {
|
||||
return new JwkTokenStore(this.resource.getJwk().getKeySetUri());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@@ -415,6 +416,7 @@ public class ResourceServerTokenServicesConfiguration {
|
||||
static class HasJwkConfiguration {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static class AcceptJsonRequestInterceptor implements ClientHttpRequestInterceptor {
|
||||
|
||||
@@ -75,6 +75,7 @@ public class TransactionAutoConfiguration {
|
||||
public TransactionTemplate transactionTemplate() {
|
||||
return new TransactionTemplate(this.transactionManager);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
||||
@@ -776,8 +776,8 @@ public class CacheAutoConfigurationTests {
|
||||
public void autoConfiguredCacheManagerCanBeSwapped() {
|
||||
load(CacheManagerPostProcessorConfiguration.class, "spring.cache.type=caffeine");
|
||||
validateCacheManager(SimpleCacheManager.class);
|
||||
CacheManagerPostProcessor postProcessor = this.context.getBean(
|
||||
CacheManagerPostProcessor.class);
|
||||
CacheManagerPostProcessor postProcessor = this.context
|
||||
.getBean(CacheManagerPostProcessor.class);
|
||||
assertThat(postProcessor.cacheManagers).hasSize(1);
|
||||
assertThat(postProcessor.cacheManagers.get(0))
|
||||
.isInstanceOf(CaffeineCacheManager.class);
|
||||
@@ -1193,14 +1193,14 @@ public class CacheAutoConfigurationTests {
|
||||
private final List<CacheManager> cacheManagers = new ArrayList<CacheManager>();
|
||||
|
||||
@Override
|
||||
public Object postProcessBeforeInitialization(Object bean,
|
||||
String beanName) throws BeansException {
|
||||
public Object postProcessBeforeInitialization(Object bean, String beanName)
|
||||
throws BeansException {
|
||||
return bean;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object postProcessAfterInitialization(Object bean,
|
||||
String beanName) throws BeansException {
|
||||
public Object postProcessAfterInitialization(Object bean, String beanName)
|
||||
throws BeansException {
|
||||
if (bean instanceof CacheManager) {
|
||||
this.cacheManagers.add((CacheManager) bean);
|
||||
return new SimpleCacheManager();
|
||||
|
||||
@@ -185,6 +185,7 @@ public class CouchbaseDataAutoConfigurationTests {
|
||||
public Boolean convert(CouchbaseProperties value) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -203,6 +203,7 @@ public class TransactionAutoConfigurationTests {
|
||||
public AnotherServiceImpl anotherService() {
|
||||
return new AnotherServiceImpl();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
||||
@@ -304,6 +304,7 @@ public class ValidationAutoConfigurationTests {
|
||||
interface AnotherSampleService {
|
||||
|
||||
void doSomething(@Min(42) Integer counter);
|
||||
|
||||
}
|
||||
|
||||
@Validated
|
||||
@@ -313,6 +314,7 @@ public class ValidationAutoConfigurationTests {
|
||||
public void doSomething(Integer counter) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@@ -382,6 +384,7 @@ public class ValidationAutoConfigurationTests {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user