Apply SingleSpaceSeparator Checkstyle module

This commit also fixes its violations.

Closes gh-31469
This commit is contained in:
Johnny Lim
2023-10-22 00:10:45 +09:00
committed by Sam Brannen
parent 8a05661707
commit 64e9fcad53
164 changed files with 229 additions and 226 deletions

View File

@@ -476,7 +476,7 @@ public class GroovyBeanDefinitionReader extends AbstractBeanDefinitionReader imp
this.currentBeanDefinition = new GroovyBeanDefinitionWrapper(beanName, beanClass);
}
}
else {
else {
this.currentBeanDefinition = new GroovyBeanDefinitionWrapper(
beanName, beanClass, resolveConstructorArguments(args, 1, args.length));
}

View File

@@ -1161,7 +1161,7 @@ class DefaultListableBeanFactoryTests {
assertThat(lbf.getBean("singletonObject")).isEqualTo(singletonObject);
assertThat(test.getSpouse()).isEqualTo(singletonObject);
Map<?, ?> beansOfType = lbf.getBeansOfType(TestBean.class, false, true);
Map<?, ?> beansOfType = lbf.getBeansOfType(TestBean.class, false, true);
assertThat(beansOfType).hasSize(2);
assertThat(beansOfType.containsValue(test)).isTrue();
assertThat(beansOfType.containsValue(singletonObject)).isTrue();

View File

@@ -218,7 +218,7 @@ class DefaultBeanRegistrationCodeFragmentsTests {
}
private BeanRegistrationCodeFragments createCustomCodeFragments(RegisteredBean registeredBean, UnaryOperator<BeanRegistrationCodeFragments> customFragments) {
BeanRegistrationAotContribution aotContribution = BeanRegistrationAotContribution.
BeanRegistrationAotContribution aotContribution = BeanRegistrationAotContribution.
withCustomCodeFragments(customFragments);
BeanRegistrationCodeFragments defaultCodeFragments = createInstance(registeredBean);
return aotContribution.customizeBeanRegistrationCodeFragments(

View File

@@ -28,7 +28,7 @@ public class NullSourceExtractorTests {
@Test
public void testPassThroughContract() throws Exception {
Object source = new Object();
Object source = new Object();
Object extractedSource = new NullSourceExtractor().extractSource(source, null);
assertThat(extractedSource).as("The contract of NullSourceExtractor states that the extraction *always* return null").isNull();
}

View File

@@ -30,7 +30,7 @@ public class PassThroughSourceExtractorTests {
@Test
public void testPassThroughContract() throws Exception {
Object source = new Object();
Object source = new Object();
Object extractedSource = new PassThroughSourceExtractor().extractSource(source, null);
assertThat(extractedSource).as("The contract of PassThroughSourceExtractor states that the supplied " +
"source object *must* be returned as-is").isSameAs(source);