Skip to content

Commit

Permalink
Move FIRST_BUFFER_SIZE to make checkstyle happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Feb 14, 2025
1 parent 6d6705a commit 9611d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/io/grpc/internal/MessageFramer.java
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ public void write(byte[] b, int off, int len) {
* {@link OutputStream}.
*/
private final class BufferChainOutputStream extends OutputStream {
private static final int FIRST_BUFFER_SIZE = 4096;

private final List<WritableBuffer> bufferList = new ArrayList<>();
private WritableBuffer current;

Expand All @@ -409,8 +411,6 @@ public void write(int b) {
write(singleByte, 0, 1);
}

private static final int FIRST_BUFFER_SIZE = 4096;

@Override
public void write(byte[] b, int off, int len) {
if (current == null) {
Expand Down

0 comments on commit 9611d74

Please sign in to comment.