Skip to content

Commit c399139

Browse files
committed
Merge branch '6.1.x'
2 parents 357dbc0 + 0a5bd89 commit c399139

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -303,7 +303,16 @@ public String toString(int index, int length, Charset charset) {
303303
}
304304

305305

306-
private record JettyByteBufferIterator(ByteBufferIterator delegate) implements ByteBufferIterator {
306+
private static class JettyByteBufferIterator implements ByteBufferIterator {
307+
308+
private final ByteBufferIterator delegate;
309+
310+
311+
JettyByteBufferIterator(ByteBufferIterator delegate) {
312+
Assert.notNull(delegate, "Delegate must not be null");
313+
314+
this.delegate = delegate;
315+
}
307316

308317
@Override
309318
public void close() {

0 commit comments

Comments
 (0)