Add EmptyLineSeparator Checkstyle rule

* Support "blank lines around" via `spring-framework.xml` IDEA config
* Fix all the Checkstyle violations
This commit is contained in:
Artem Bilan
2024-03-27 16:54:25 -04:00
parent f71a2234d8
commit c155d5d418
932 changed files with 1341 additions and 2485 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -149,7 +149,6 @@ public class ApplicationEventListeningMessageProducer extends ExpressionMessageP
}
}
if (eventType.getRawClass() != null
&& PayloadApplicationEvent.class.isAssignableFrom(eventType.getRawClass())) {
if (eventType.hasUnresolvableGenerics()) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2023 the original author or authors.
* Copyright 2016-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -70,7 +70,6 @@ public class IntegrationFlowEventsTests {
messageGroupStore.addMessageToGroup(GROUP_ID, new GenericMessage<>("foo"));
}
@Autowired
private ApplicationContext applicationContext;
@@ -165,7 +164,6 @@ public class IntegrationFlowEventsTests {
return producer;
}
@Bean
public PollableChannel resultsChannel() {
return new QueueChannel();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -309,7 +309,6 @@ public class ApplicationEventListeningMessageProducerTests {
ctx.close();
}
@SuppressWarnings("serial")
private static class TestApplicationEvent1 extends ApplicationEvent {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -58,7 +58,6 @@ public class ApplicationEventPublishingMessageHandlerTests {
assertThat((event).getSource()).isEqualTo("foo");
}
private static class TestApplicationEventPublisher implements ApplicationEventPublisher {
private volatile ApplicationEvent lastEvent;
@@ -79,7 +78,6 @@ public class ApplicationEventPublishingMessageHandlerTests {
}
@SuppressWarnings("serial")
private static class TestEvent extends ApplicationEvent {