Browse Source

Merge branch '6.1.x'

pull/33883/head
Sam Brannen 1 year ago
parent
commit
c3991392df
  1. 13
      spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketHandlerAdapter.java

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2023 the original author or authors. * Copyright 2002-2024 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -303,7 +303,16 @@ public class JettyWebSocketHandlerAdapter implements Session.Listener {
} }
private record JettyByteBufferIterator(ByteBufferIterator delegate) implements ByteBufferIterator { private static class JettyByteBufferIterator implements ByteBufferIterator {
private final ByteBufferIterator delegate;
JettyByteBufferIterator(ByteBufferIterator delegate) {
Assert.notNull(delegate, "Delegate must not be null");
this.delegate = delegate;
}
@Override @Override
public void close() { public void close() {

Loading…
Cancel
Save