Skip to content

Commit 0a5bd89

Browse files
committed
Align JettyByteBufferIterator implementations
Both are now static nested classes.
1 parent 53b9a2c commit 0a5bd89

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Diff for: 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.
@@ -322,7 +322,16 @@ public String toString(int index, int length, Charset charset) {
322322
}
323323

324324

325-
private record JettyByteBufferIterator(ByteBufferIterator delegate) implements ByteBufferIterator {
325+
private static class JettyByteBufferIterator implements ByteBufferIterator {
326+
327+
private final ByteBufferIterator delegate;
328+
329+
330+
JettyByteBufferIterator(ByteBufferIterator delegate) {
331+
Assert.notNull(delegate, "Delegate must not be null");
332+
333+
this.delegate = delegate;
334+
}
326335

327336
@Override
328337
public void close() {

0 commit comments

Comments
 (0)