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

spring-context-support/src/main/java/org/springframework/mail/javamail/JavaMailSenderImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ protected Transport connectTransport() throws MessagingException {
490490
* @see #getProtocol()
491491
*/
492492
protected Transport getTransport(Session session) throws NoSuchProviderException {
493-
String protocol = getProtocol();
493+
String protocol = getProtocol();
494494
if (protocol == null) {
495495
protocol = session.getProperty("mail.transport.protocol");
496496
if (protocol == null) {

spring-context/src/main/java/org/springframework/cache/interceptor/AbstractCacheResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public CacheManager getCacheManager() {
7373
}
7474

7575
@Override
76-
public void afterPropertiesSet() {
76+
public void afterPropertiesSet() {
7777
Assert.notNull(this.cacheManager, "CacheManager is required");
7878
}
7979

spring-context/src/main/java/org/springframework/cache/interceptor/CacheInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public Object invoke(final MethodInvocation invocation) throws Throwable {
8484
private static class KotlinDelegate {
8585

8686
public static Publisher<?> invokeSuspendingFunction(Method method, Object target, Object... args) {
87-
Continuation<?> continuation = (Continuation<?>) args[args.length - 1];
87+
Continuation<?> continuation = (Continuation<?>) args[args.length - 1];
8888
CoroutineContext coroutineContext = continuation.getContext().minusKey(Job.Key);
8989
return CoroutinesUtils.invokeSuspendingFunction(coroutineContext, method, target, args);
9090
}

spring-context/src/main/java/org/springframework/format/datetime/DateTimeFormatAnnotationFormatterFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @author Sam Brannen
3838
* @since 3.2
3939
*/
40-
public class DateTimeFormatAnnotationFormatterFactory extends EmbeddedValueResolutionSupport
40+
public class DateTimeFormatAnnotationFormatterFactory extends EmbeddedValueResolutionSupport
4141
implements AnnotationFormatterFactory<DateTimeFormat> {
4242

4343
private static final Set<Class<?>> FIELD_TYPES = Set.of(Date.class, Calendar.class, Long.class);

spring-context/src/main/java/org/springframework/scheduling/concurrent/ThreadPoolExecutorFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected ExecutorService initializeExecutor(
158158
ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) {
159159

160160
BlockingQueue<Runnable> queue = createQueue(this.queueCapacity);
161-
ThreadPoolExecutor executor = createExecutor(this.corePoolSize, this.maxPoolSize,
161+
ThreadPoolExecutor executor = createExecutor(this.corePoolSize, this.maxPoolSize,
162162
this.keepAliveSeconds, queue, threadFactory, rejectedExecutionHandler);
163163
if (this.allowCoreThreadTimeOut) {
164164
executor.allowCoreThreadTimeOut(true);

spring-context/src/main/java/org/springframework/scheduling/support/BitsCronField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private void setBit(int index) {
247247
}
248248

249249
private void clearBit(int index) {
250-
this.bits &= ~(1L << index);
250+
this.bits &= ~(1L << index);
251251
}
252252

253253
@Override

spring-context/src/main/java/org/springframework/validation/DataBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ private Object createObject(ResolvableType objectType, String nestedPath, ValueR
949949

950950
if (value == null && !BeanUtils.isSimpleValueType(param.nestedIfOptional().getNestedParameterType())) {
951951
ResolvableType type = ResolvableType.forMethodParameter(param);
952-
args[i] = createObject(type, paramPath + ".", valueResolver);
952+
args[i] = createObject(type, paramPath + ".", valueResolver);
953953
}
954954
else {
955955
try {

spring-context/src/main/java/org/springframework/validation/beanvalidation/MethodValidationAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ else if (node.getKind().equals(ElementKind.RETURN_VALUE)) {
345345
}
346346

347347
private MethodParameter initMethodParameter(Method method, int index) {
348-
MethodParameter parameter = new MethodParameter(method, index);
348+
MethodParameter parameter = new MethodParameter(method, index);
349349
parameter.initParameterNameDiscovery(this.parameterNameDiscoverer);
350350
return parameter;
351351
}

spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/spr3064/SPR3064Tests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void serviceIsAdvised() {
3939
ClassPathXmlApplicationContext ctx =
4040
new ClassPathXmlApplicationContext(getClass().getSimpleName() + ".xml", getClass());
4141

42-
Service service = ctx.getBean(Service.class);
42+
Service service = ctx.getBean(Service.class);
4343
assertThatRuntimeException()
4444
.isThrownBy(service::serveMe)
4545
.withMessage("advice invoked");

spring-context/src/test/java/org/springframework/aop/framework/autoproxy/BeanNameAutoProxyCreatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void customTargetSourceCreatorsApplyOnlyToConfiguredBeanNames() {
166166
}
167167

168168

169-
private void jdkAssertions(ITestBean tb, int nopInterceptorCount) {
169+
private void jdkAssertions(ITestBean tb, int nopInterceptorCount) {
170170
NopInterceptor nop = (NopInterceptor) beanFactory.getBean("nopInterceptor");
171171
assertThat(nop.getCount()).isEqualTo(0);
172172
assertThat(AopUtils.isJdkDynamicProxy(tb)).isTrue();

spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTestTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public String replaceMe(int someParam) {
418418

419419
@Override
420420
public String replaceMe(String someParam) {
421-
return "replaceMe:" + someParam;
421+
return "replaceMe:" + someParam;
422422
}
423423
}
424424

spring-context/src/test/java/org/springframework/cache/interceptor/ExpressionEvaluatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void unavailableReturnValue() {
121121
EvaluationContext context = createEvaluationContext(CacheOperationExpressionEvaluator.RESULT_UNAVAILABLE);
122122
assertThatExceptionOfType(VariableNotAvailableException.class).isThrownBy(() ->
123123
new SpelExpressionParser().parseExpression("#result").getValue(context))
124-
.satisfies(ex -> assertThat(ex.getName()).isEqualTo("result"));
124+
.satisfies(ex -> assertThat(ex.getName()).isEqualTo("result"));
125125
}
126126

127127
@Test

spring-context/src/test/java/org/springframework/context/annotation/configuration/Spr10744Tests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public Foo foo() {
122122
static class MyTestConfiguration extends MyConfiguration {
123123

124124
@Bean
125-
@Scope(value = "myTestScope", proxyMode = ScopedProxyMode.TARGET_CLASS)
125+
@Scope(value = "myTestScope", proxyMode = ScopedProxyMode.TARGET_CLASS)
126126
@Override
127127
public Foo foo() {
128128
return new Foo();

spring-context/src/test/java/org/springframework/context/annotation/spr12334/Spr12334Tests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static class TestImport implements ImportBeanDefinitionRegistrar {
6969
private static AtomicInteger scanned = new AtomicInteger();
7070

7171
@Override
72-
public void registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionRegistry registry) {
72+
public void registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionRegistry registry) {
7373
if (scanned.get() > 0) {
7474
throw new IllegalStateException("Already scanned");
7575
}

spring-context/src/test/java/org/springframework/context/annotation4/FactoryMethodComponent.java

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

3838
private int i;
3939

40-
public static TestBean nullInstance() {
40+
public static TestBean nullInstance() {
4141
return null;
4242
}
4343

spring-context/src/test/java/org/springframework/context/support/DefaultLifecycleProcessorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ static TestLifecycleBean forShutdownTests(CopyOnWriteArrayList<Lifecycle> stoppe
677677
return new TestLifecycleBean(null, stoppedBeans);
678678
}
679679

680-
private TestLifecycleBean(CopyOnWriteArrayList<Lifecycle> startedBeans, CopyOnWriteArrayList<Lifecycle> stoppedBeans) {
680+
private TestLifecycleBean(CopyOnWriteArrayList<Lifecycle> startedBeans, CopyOnWriteArrayList<Lifecycle> stoppedBeans) {
681681
this.startedBeans = startedBeans;
682682
this.stoppedBeans = stoppedBeans;
683683
}

spring-context/src/test/java/org/springframework/context/support/GenericApplicationContextTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public BeanA(BeanB b, BeanC c) {
652652
}
653653
}
654654

655-
static class BeanB implements ApplicationContextAware {
655+
static class BeanB implements ApplicationContextAware {
656656

657657
ApplicationContext applicationContext;
658658

spring-context/src/test/java/org/springframework/jmx/support/JmxUtilsTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void isMBean() {
5858
}
5959

6060
@Test
61-
void isMBeanWithDynamicMBean() {
61+
void isMBeanWithDynamicMBean() {
6262
DynamicMBean mbean = new TestDynamicMBean();
6363
assertThat(JmxUtils.isMBean(mbean.getClass())).as("Dynamic MBean not detected correctly").isTrue();
6464
}
@@ -76,24 +76,24 @@ void isMBeanWithStandardMBeanInherited() throws NotCompliantMBeanException {
7676
}
7777

7878
@Test
79-
void notAnMBean() {
79+
void notAnMBean() {
8080
assertThat(JmxUtils.isMBean(Object.class)).as("Object incorrectly identified as an MBean").isFalse();
8181
}
8282

8383
@Test
84-
void simpleMBean() {
84+
void simpleMBean() {
8585
Foo foo = new Foo();
8686
assertThat(JmxUtils.isMBean(foo.getClass())).as("Simple MBean not detected correctly").isTrue();
8787
}
8888

8989
@Test
90-
void simpleMXBean() {
90+
void simpleMXBean() {
9191
FooX foo = new FooX();
9292
assertThat(JmxUtils.isMBean(foo.getClass())).as("Simple MXBean not detected correctly").isTrue();
9393
}
9494

9595
@Test
96-
void simpleMBeanThroughInheritance() {
96+
void simpleMBeanThroughInheritance() {
9797
Bar bar = new Bar();
9898
Abc abc = new Abc();
9999
assertThat(JmxUtils.isMBean(bar.getClass())).as("Simple MBean (through inheritance) not detected correctly").isTrue();

spring-context/src/test/java/org/springframework/scheduling/support/CronExpressionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ public void daylightSaving() {
13571357
@Test
13581358
public void various() {
13591359
CronExpression cronExpression = CronExpression.parse("3-57 13-28 17,18 1,15 3-12 6#1");
1360-
LocalDateTime last = LocalDateTime.of(2022, 9, 15, 17, 44, 11);
1360+
LocalDateTime last = LocalDateTime.of(2022, 9, 15, 17, 44, 11);
13611361
LocalDateTime expected = LocalDateTime.of(2022, 10, 1, 17, 13, 3);
13621362
LocalDateTime actual = cronExpression.next(last);
13631363
assertThat(actual).isNotNull();

spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/AbstractValueAdaptingCacheTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @author Stephane Nicoll
2727
*/
2828
public abstract class AbstractValueAdaptingCacheTests<T extends AbstractValueAdaptingCache>
29-
extends AbstractCacheTests<T> {
29+
extends AbstractCacheTests<T> {
3030

3131
protected static final String CACHE_NAME_NO_NULL = "testCacheNoNull";
3232

spring-context/src/testFixtures/java/org/springframework/context/testfixture/cache/beans/AnnotatedClassCacheableService.java

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

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

spring-core-test/src/main/java/org/springframework/aot/agent/InstrumentedBridgeMethods.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public static ResourceBundle resourcebundlegetBundle(String baseName, Locale tar
479479
return result;
480480
}
481481

482-
public static ResourceBundle resourcebundlegetBundle( String baseName, Locale targetLocale, ResourceBundle.Control control) {
482+
public static ResourceBundle resourcebundlegetBundle(String baseName, Locale targetLocale, ResourceBundle.Control control) {
483483
RecordedInvocation.Builder builder = RecordedInvocation.of(InstrumentedMethod.RESOURCEBUNDLE_GETBUNDLE).withArguments(baseName, targetLocale, control);
484484
ResourceBundle result = null;
485485
try {

spring-core/src/main/java/org/springframework/aot/hint/support/KotlinDetectorRuntimeHints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @author Brian Clozel
2727
* @since 6.1
2828
*/
29-
class KotlinDetectorRuntimeHints implements RuntimeHintsRegistrar {
29+
class KotlinDetectorRuntimeHints implements RuntimeHintsRegistrar {
3030

3131
@Override
3232
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {

spring-core/src/main/java/org/springframework/core/annotation/AnnotationAwareOrderComparator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public Integer getPriority(Object obj) {
9292
return OrderUtils.getPriority(clazz);
9393
}
9494
Integer priority = OrderUtils.getPriority(obj.getClass());
95-
if (priority == null && obj instanceof DecoratingProxy decoratingProxy) {
95+
if (priority == null && obj instanceof DecoratingProxy decoratingProxy) {
9696
return getPriority(decoratingProxy.getDecoratedClass());
9797
}
9898
return priority;

spring-core/src/main/java/org/springframework/core/io/UrlResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public UrlResource(String path) throws MalformedURLException {
129129
* @throws MalformedURLException if the given URL specification is not valid
130130
* @see java.net.URI#URI(String, String, String)
131131
*/
132-
public UrlResource(String protocol, String location) throws MalformedURLException {
132+
public UrlResource(String protocol, String location) throws MalformedURLException {
133133
this(protocol, location, null);
134134
}
135135

@@ -145,7 +145,7 @@ public UrlResource(String protocol, String location) throws MalformedURLExceptio
145145
* @throws MalformedURLException if the given URL specification is not valid
146146
* @see java.net.URI#URI(String, String, String)
147147
*/
148-
public UrlResource(String protocol, String location, @Nullable String fragment) throws MalformedURLException {
148+
public UrlResource(String protocol, String location, @Nullable String fragment) throws MalformedURLException {
149149
try {
150150
this.uri = new URI(protocol, location, fragment);
151151
this.url = this.uri.toURL();

spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ private void read() {
10741074
DataBuffer.ByteBufferIterator iterator = dataBuffer.writableByteBuffers();
10751075
Assert.state(iterator.hasNext(), "No ByteBuffer available");
10761076
ByteBuffer byteBuffer = iterator.next();
1077-
Attachment attachment = new Attachment(dataBuffer, iterator);
1077+
Attachment attachment = new Attachment(dataBuffer, iterator);
10781078
this.channel.read(byteBuffer, this.position.get(), attachment, this);
10791079
}
10801080

spring-core/src/main/java/org/springframework/core/serializer/support/SerializingConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public SerializingConverter(Serializer<Object> serializer) {
5656
*/
5757
@Override
5858
public byte[] convert(Object source) {
59-
try {
59+
try {
6060
return this.serializer.serializeToByteArray(source);
6161
}
6262
catch (Throwable ex) {

spring-core/src/main/java/org/springframework/util/xml/SimpleNamespaceContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ else if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(namespaceUri)) {
9090
}
9191
else {
9292
Set<String> prefixes = this.namespaceUriToPrefixes.get(namespaceUri);
93-
return (prefixes != null ? Collections.unmodifiableSet(prefixes) : Collections.emptySet());
93+
return (prefixes != null ? Collections.unmodifiableSet(prefixes) : Collections.emptySet());
9494
}
9595
}
9696

spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void spr3304() throws Exception {
252252
Method bridgedMethod = MegaMessageProducerImpl.class.getDeclaredMethod("receive", MegaMessageEvent.class);
253253
assertThat(bridgedMethod.isBridge()).isFalse();
254254

255-
Method bridgeMethod = MegaMessageProducerImpl.class.getDeclaredMethod("receive", MegaEvent.class);
255+
Method bridgeMethod = MegaMessageProducerImpl.class.getDeclaredMethod("receive", MegaEvent.class);
256256
assertThat(bridgeMethod.isBridge()).isTrue();
257257

258258
assertThat(BridgeMethodResolver.findBridgedMethod(bridgeMethod)).isEqualTo(bridgedMethod);

0 commit comments

Comments
 (0)