Skip to content

Commit 9611d74

Browse files
committed
Move FIRST_BUFFER_SIZE to make checkstyle happy
1 parent 6d6705a commit 9611d74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/io/grpc/internal/MessageFramer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ public void write(byte[] b, int off, int len) {
391391
* {@link OutputStream}.
392392
*/
393393
private final class BufferChainOutputStream extends OutputStream {
394+
private static final int FIRST_BUFFER_SIZE = 4096;
395+
394396
private final List<WritableBuffer> bufferList = new ArrayList<>();
395397
private WritableBuffer current;
396398

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

412-
private static final int FIRST_BUFFER_SIZE = 4096;
413-
414414
@Override
415415
public void write(byte[] b, int off, int len) {
416416
if (current == null) {

0 commit comments

Comments
 (0)