Skip to content

Commit 64e9fca

Browse files
izeyesbrannen
authored andcommitted
Apply SingleSpaceSeparator Checkstyle module
This commit also fixes its violations. Closes gh-31469
1 parent 8a05661 commit 64e9fca

File tree

164 files changed

+229
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+229
-226
lines changed

spring-aop/src/main/java/org/aopalliance/intercept/ConstructorInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*
4444
* @author Rod Johnson
4545
*/
46-
public interface ConstructorInterceptor extends Interceptor {
46+
public interface ConstructorInterceptor extends Interceptor {
4747

4848
/**
4949
* Implement this method to perform extra treatments before and

spring-aop/src/main/java/org/springframework/aop/aspectj/AbstractAspectJAdvice.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ protected void setReturningNameNoCheck(String name) {
307307
this.discoveredReturningType = ClassUtils.forName(name, getAspectClassLoader());
308308
}
309309
catch (Throwable ex) {
310-
throw new IllegalArgumentException("Returning name '" + name +
310+
throw new IllegalArgumentException("Returning name '" + name +
311311
"' is neither a valid argument name nor the fully-qualified " +
312312
"name of a Java type on the classpath. Root cause: " + ex);
313313
}
@@ -342,7 +342,7 @@ protected void setThrowingNameNoCheck(String name) {
342342
this.discoveredThrowingType = ClassUtils.forName(name, getAspectClassLoader());
343343
}
344344
catch (Throwable ex) {
345-
throw new IllegalArgumentException("Throwing name '" + name +
345+
throw new IllegalArgumentException("Throwing name '" + name +
346346
"' is neither a valid argument name nor the fully-qualified " +
347347
"name of a Java type on the classpath. Root cause: " + ex);
348348
}

spring-aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerEventTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class AopNamespaceHandlerEventTests {
4545

4646
private static final Class<?> CLASS = AopNamespaceHandlerEventTests.class;
4747

48-
private static final Resource CONTEXT = qualifiedResource(CLASS, "context.xml");
49-
private static final Resource POINTCUT_EVENTS_CONTEXT = qualifiedResource(CLASS, "pointcutEvents.xml");
48+
private static final Resource CONTEXT = qualifiedResource(CLASS, "context.xml");
49+
private static final Resource POINTCUT_EVENTS_CONTEXT = qualifiedResource(CLASS, "pointcutEvents.xml");
5050
private static final Resource POINTCUT_REF_CONTEXT = qualifiedResource(CLASS, "pointcutRefEvents.xml");
5151
private static final Resource DIRECT_POINTCUT_EVENTS_CONTEXT = qualifiedResource(CLASS, "directPointcutEvents.xml");
5252

spring-aspects/src/test/java/org/springframework/cache/config/AnnotatedClassCacheableService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public Object multiCache(Object arg1) {
209209
}
210210

211211
@Override
212-
@Caching(evict = { @CacheEvict("primary"), @CacheEvict(cacheNames = "secondary", key = "#a0"), @CacheEvict(cacheNames = "primary", key = "#p0 + 'A'") })
212+
@Caching(evict = { @CacheEvict("primary"), @CacheEvict(cacheNames = "secondary", key = "#a0"), @CacheEvict(cacheNames = "primary", key = "#p0 + 'A'") })
213213
public Object multiEvict(Object arg1) {
214214
return this.counter.getAndIncrement();
215215
}

spring-aspects/src/test/java/org/springframework/context/annotation/aspectj/AnnotationBeanConfigurerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class AnnotationBeanConfigurerTests {
3737

3838
@Test
3939
public void injection() {
40-
try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class)) {
40+
try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class)) {
4141
ShouldBeConfiguredBySpring myObject = new ShouldBeConfiguredBySpring();
4242
assertThat(myObject.getName()).isEqualTo("Rod");
4343
}

spring-beans/src/main/java/org/springframework/beans/factory/groovy/GroovyBeanDefinitionReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ private GroovyBeanDefinitionWrapper invokeBeanDefiningMethod(String beanName, Ob
476476
this.currentBeanDefinition = new GroovyBeanDefinitionWrapper(beanName, beanClass);
477477
}
478478
}
479-
else {
479+
else {
480480
this.currentBeanDefinition = new GroovyBeanDefinitionWrapper(
481481
beanName, beanClass, resolveConstructorArguments(args, 1, args.length));
482482
}

spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ void registerExistingSingletonWithNameOverriding() {
11611161
assertThat(lbf.getBean("singletonObject")).isEqualTo(singletonObject);
11621162
assertThat(test.getSpouse()).isEqualTo(singletonObject);
11631163

1164-
Map<?, ?> beansOfType = lbf.getBeansOfType(TestBean.class, false, true);
1164+
Map<?, ?> beansOfType = lbf.getBeansOfType(TestBean.class, false, true);
11651165
assertThat(beansOfType).hasSize(2);
11661166
assertThat(beansOfType.containsValue(test)).isTrue();
11671167
assertThat(beansOfType.containsValue(singletonObject)).isTrue();

spring-beans/src/test/java/org/springframework/beans/factory/aot/DefaultBeanRegistrationCodeFragmentsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public CodeBlock generateInstanceSupplierCode(GenerationContext generationContex
218218
}
219219

220220
private BeanRegistrationCodeFragments createCustomCodeFragments(RegisteredBean registeredBean, UnaryOperator<BeanRegistrationCodeFragments> customFragments) {
221-
BeanRegistrationAotContribution aotContribution = BeanRegistrationAotContribution.
221+
BeanRegistrationAotContribution aotContribution = BeanRegistrationAotContribution.
222222
withCustomCodeFragments(customFragments);
223223
BeanRegistrationCodeFragments defaultCodeFragments = createInstance(registeredBean);
224224
return aotContribution.customizeBeanRegistrationCodeFragments(

spring-beans/src/test/java/org/springframework/beans/factory/parsing/NullSourceExtractorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class NullSourceExtractorTests {
2828

2929
@Test
3030
public void testPassThroughContract() throws Exception {
31-
Object source = new Object();
31+
Object source = new Object();
3232
Object extractedSource = new NullSourceExtractor().extractSource(source, null);
3333
assertThat(extractedSource).as("The contract of NullSourceExtractor states that the extraction *always* return null").isNull();
3434
}

spring-beans/src/test/java/org/springframework/beans/factory/parsing/PassThroughSourceExtractorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class PassThroughSourceExtractorTests {
3030

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

0 commit comments

Comments
 (0)