Apply SingleSpaceSeparator Checkstyle module

This commit also fixes its violations.

Closes gh-31469
This commit is contained in:
Johnny Lim
2023-10-22 00:10:45 +09:00
committed by Sam Brannen
parent 8a05661707
commit 64e9fcad53
164 changed files with 229 additions and 226 deletions

View File

@@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -92,6 +92,6 @@ public class BeanCreatingHandlerProviderTests {
}
}
private static class EchoService { }
private static class EchoService { }
}

View File

@@ -87,6 +87,6 @@ public class ServerEndpointRegistrationTests {
}
}
private static class EchoService { }
private static class EchoService { }
}

View File

@@ -135,6 +135,6 @@ public class SpringConfiguratorTests {
}
}
private static class EchoService { }
private static class EchoService { }
}