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 2014-2023 the original author or authors.
* Copyright 2014-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.
@@ -89,7 +89,6 @@ public class ServerWebSocketContainer extends IntegrationWebSocketContainer
return this;
}
/**
* Configure one or more factories to decorate the handler used to process
* WebSocket messages. This may be useful in some advanced use cases, for

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2022 the original author or authors.
* Copyright 2014-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.
@@ -145,7 +145,6 @@ public class WebSocketInboundChannelAdapter extends MessageProducerSupport
this.messageConverters = new ArrayList<>(messageConverters);
}
/**
* Flag which determines if the default converters should be available after
* custom converters.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2020 the original author or authors.
* Copyright 2014-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.
@@ -101,7 +101,6 @@ public class WebSocketOutboundMessageHandler extends AbstractMessageHandler {
this.messageConverters = new ArrayList<>(messageConverters);
}
/**
* Flag which determines if the default converters should be available after
* custom converters.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2023 the original author or authors.
* Copyright 2014-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.
@@ -16,7 +16,6 @@
package org.springframework.integration.websocket;
import java.net.URI;
import java.util.Collections;
import java.util.HashMap;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2022 the original author or authors.
* Copyright 2014-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.
@@ -260,7 +260,6 @@ public class StompIntegrationTests {
this.webSocketOutputChannel.send(message2);
Message<?> receive = webSocketInputChannel.receive(20000);
assertThat(receive).isNotNull();
@@ -438,7 +437,6 @@ public class StompIntegrationTests {
}
@MessagingGateway
@Controller
public interface WebSocketGateway {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2021-2023 the original author or authors.
* Copyright 2021-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 WebSocketDslTests {
}
@Configuration
@EnableIntegration
static class ServerConfig {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2022 the original author or authors.
* Copyright 2014-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.
@@ -89,7 +89,6 @@ public class WebSocketInboundChannelAdapterTests {
Map<String, WebSocketSession> sessions =
TestUtils.getPropertyValue(this.subProtocolWebSocketHandler, "sessions", Map.class);
assertThat(sessions.size()).isEqualTo(1);
String sessionId = sessions.keySet().iterator().next();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2022 the original author or authors.
* Copyright 2014-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.
@@ -88,7 +88,6 @@ public class WebSocketOutboundMessageHandlerTests {
assertThat(payload.getBytes()).isEqualTo(receivedPayload);
}
@Configuration
@EnableIntegration
public static class ContextConfiguration {