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;
|
||||
|
||||
Reference in New Issue
Block a user