Apply SingleSpaceSeparator Checkstyle module
This commit also fixes its violations. Closes gh-31469
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user