Apply SingleSpaceSeparator Checkstyle module
This commit also fixes its violations. Closes gh-31469
This commit is contained in:
@@ -54,7 +54,7 @@ public final class CloseStatus implements Serializable {
|
||||
* "1002 indicates that an endpoint is terminating the connection due to a protocol
|
||||
* error."
|
||||
*/
|
||||
public static final CloseStatus PROTOCOL_ERROR = new CloseStatus(1002);
|
||||
public static final CloseStatus PROTOCOL_ERROR = new CloseStatus(1002);
|
||||
|
||||
/**
|
||||
* "1003 indicates that an endpoint is terminating the connection because it has
|
||||
|
||||
@@ -43,7 +43,7 @@ public class LoggingWebSocketHandlerDecorator extends WebSocketHandlerDecorator
|
||||
@Override
|
||||
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("New " + session);
|
||||
logger.debug("New " + session);
|
||||
}
|
||||
super.afterConnectionEstablished(session);
|
||||
}
|
||||
|
||||
@@ -580,7 +580,7 @@ public class WebSocketStompClient extends StompClientSupport implements SmartLif
|
||||
byte[] payload = message.getPayload();
|
||||
byte[] bytes = ENCODER.encode(accessor.getMessageHeaders(), payload);
|
||||
|
||||
boolean useBinary = (payload.length > 0 &&
|
||||
boolean useBinary = (payload.length > 0 &&
|
||||
!(SockJsSession.class.isAssignableFrom(sessionType)) &&
|
||||
MimeTypeUtils.APPLICATION_OCTET_STREAM.isCompatibleWith(accessor.getContentType()));
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ public abstract class AbstractClientSockJsSession implements WebSocketSession {
|
||||
throw new IllegalArgumentException("Invalid close status: " + status);
|
||||
}
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Closing session with " + status + " in " + this);
|
||||
logger.debug("Closing session with " + status + " in " + this);
|
||||
}
|
||||
closeInternal(status);
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ public class JettyXhrTransport extends AbstractXhrTransport implements Lifecycle
|
||||
|
||||
private final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
||||
|
||||
public SockJsResponseListener(URI url, HttpHeaders headers, XhrClientSockJsSession sockJsSession,
|
||||
public SockJsResponseListener(URI url, HttpHeaders headers, XhrClientSockJsSession sockJsSession,
|
||||
CompletableFuture<WebSocketSession> connectFuture) {
|
||||
|
||||
this.transportUrl = url;
|
||||
|
||||
@@ -433,10 +433,10 @@ public class MessageBrokerBeanDefinitionParserTests {
|
||||
|
||||
|
||||
private void testChannel(
|
||||
String channelName, List<Class<? extends MessageHandler>> subscriberTypes, int interceptorCount) {
|
||||
String channelName, List<Class<? extends MessageHandler>> subscriberTypes, int interceptorCount) {
|
||||
|
||||
AbstractSubscribableChannel channel = this.appContext.getBean(channelName, AbstractSubscribableChannel.class);
|
||||
for (Class<? extends MessageHandler> subscriberType : subscriberTypes) {
|
||||
for (Class<? extends MessageHandler> subscriberType : subscriberTypes) {
|
||||
MessageHandler subscriber = this.appContext.getBean(subscriberType);
|
||||
assertThat(subscriber).as("No subscription for " + subscriberType).isNotNull();
|
||||
assertThat(channel.hasSubscription(subscriber)).isTrue();
|
||||
|
||||
@@ -92,6 +92,6 @@ public class BeanCreatingHandlerProviderTests {
|
||||
}
|
||||
}
|
||||
|
||||
private static class EchoService { }
|
||||
private static class EchoService { }
|
||||
|
||||
}
|
||||
|
||||
@@ -87,6 +87,6 @@ public class ServerEndpointRegistrationTests {
|
||||
}
|
||||
}
|
||||
|
||||
private static class EchoService { }
|
||||
private static class EchoService { }
|
||||
|
||||
}
|
||||
|
||||
@@ -135,6 +135,6 @@ public class SpringConfiguratorTests {
|
||||
}
|
||||
}
|
||||
|
||||
private static class EchoService { }
|
||||
private static class EchoService { }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user