Merge branch '6.1.x'

This commit is contained in:
Sam Brannen 2024-11-13 12:32:48 +01:00
commit c3991392df
1 changed files with 11 additions and 2 deletions

View File

@ -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");
* 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
public void close() {