Skip to content

Commit

Permalink
Align JettyByteBufferIterator implementations
Browse files Browse the repository at this point in the history
Both are now static nested classes.
  • Loading branch information
sbrannen committed Nov 13, 2024
1 parent 53b9a2c commit 0a5bd89
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -322,7 +322,16 @@ public String toString(int index, int length, Charset charset) {
}


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() {
Expand Down

0 comments on commit 0a5bd89

Please sign in to comment.