Formatting

This commit is contained in:
Phillip Webb
2018-05-04 12:00:50 -07:00
parent 1314aaa368
commit 0a0247975c
36 changed files with 59 additions and 28 deletions

View File

@@ -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);
}

View File

@@ -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;
}

View File

@@ -120,6 +120,7 @@ public class IntegrationAutoConfiguration {
@Configuration
@EnableIntegrationManagement(defaultCountsEnabled = "true", defaultStatsEnabled = "true")
protected static class EnableIntegrationManagementConfiguration {
}
}

View File

@@ -77,6 +77,7 @@ class IntegrationAutoConfigurationScanRegistrar extends IntegrationComponentScan
}
return attributes;
}
}
@IntegrationComponentScan

View File

@@ -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 {
}
}

View File

@@ -292,6 +292,7 @@ public class ResourceServerProperties implements Validator, BeanFactoryAware {
public void setKeySetUri(String keySetUri) {
this.keySetUri = keySetUri;
}
}
}

View File

@@ -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 {

View File

@@ -75,6 +75,7 @@ public class TransactionAutoConfiguration {
public TransactionTemplate transactionTemplate() {
return new TransactionTemplate(this.transactionManager);
}
}
@Configuration

View File

@@ -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();

View File

@@ -185,6 +185,7 @@ public class CouchbaseDataAutoConfigurationTests {
public Boolean convert(CouchbaseProperties value) {
return true;
}
}
}

View File

@@ -203,6 +203,7 @@ public class TransactionAutoConfigurationTests {
public AnotherServiceImpl anotherService() {
return new AnotherServiceImpl();
}
}
@Configuration

View File

@@ -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 {
}
}
}
}