Skip to content

Commit 2c547e9

Browse files
committed
Merge branch '6.2.x'
# Conflicts: # framework-platform/framework-platform.gradle
2 parents 39db0e0 + 275fb52 commit 2c547e9

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

framework-platform/framework-platform.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ dependencies {
9595
api("org.apache.derby:derbyclient:10.16.1.1")
9696
api("org.apache.derby:derbytools:10.16.1.1")
9797
api("org.apache.httpcomponents.client5:httpclient5:5.5")
98-
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.3.4")
98+
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.3.5")
9999
api("org.apache.poi:poi-ooxml:5.2.5")
100100
api("org.apache.tomcat.embed:tomcat-embed-core:11.0.7")
101101
api("org.apache.tomcat.embed:tomcat-embed-websocket:11.0.7")

spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketHandlerAdapter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ private static final class JettyCallbackDataBuffer implements CloseableDataBuffe
117117

118118
private final Callback callback;
119119

120-
121120
public JettyCallbackDataBuffer(DataBuffer delegate, Callback callback) {
122121
Assert.notNull(delegate, "'delegate` must not be null");
123122
Assert.notNull(callback, "Callback must not be null");

spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketSession.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public class JettyWebSocketSession extends AbstractWebSocketSession<Session> {
6666

6767
private final Sinks.@Nullable Empty<Void> handlerCompletionSink;
6868

69+
6970
public JettyWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory) {
7071
this(session, info, factory, null);
7172
}
@@ -105,6 +106,7 @@ public JettyWebSocketSession(Session session, HandshakeInfo info, DataBufferFact
105106
});
106107
}
107108

109+
108110
void handleMessage(WebSocketMessage message) {
109111
Assert.state(this.sink != null, "No sink available");
110112
this.sink.next(message);
@@ -187,7 +189,6 @@ public Mono<Void> send(Publisher<WebSocketMessage> messages) {
187189
}
188190

189191
protected Mono<Void> sendMessage(WebSocketMessage message) {
190-
191192
Callback.Completable completable = new Callback.Completable();
192193
DataBuffer dataBuffer = message.getPayload();
193194
Session session = getDelegate();
@@ -243,4 +244,5 @@ protected void onCompleteFailure(Throwable cause) {
243244
}
244245
return Mono.fromFuture(completable);
245246
}
247+
246248
}

spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketSession.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ public boolean isOpen() {
165165
return getNativeSession().isOpen();
166166
}
167167

168-
169168
@Override
170169
public void initializeNativeSession(Session session) {
171170
super.initializeNativeSession(session);
@@ -199,7 +198,6 @@ private List<WebSocketExtension> getExtensions(Session session) {
199198
return Collections.emptyList();
200199
}
201200

202-
203201
@Override
204202
protected void sendTextMessage(TextMessage message) throws IOException {
205203
useSession((session, callback) -> session.sendText(message.getPayload(), callback));
@@ -233,7 +231,6 @@ private void useSession(SessionConsumer sessionConsumer) throws IOException {
233231
}
234232
catch (ExecutionException ex) {
235233
Throwable cause = ex.getCause();
236-
237234
if (cause instanceof IOException ioEx) {
238235
throw ioEx;
239236
}
@@ -249,6 +246,7 @@ else if (cause instanceof UncheckedIOException uioEx) {
249246
}
250247
}
251248

249+
252250
@FunctionalInterface
253251
private interface SessionConsumer {
254252

0 commit comments

Comments
 (0)