Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public ByteArrayOutputStreamExposed(int size) {
super(size);
}

public void writeTo(@Nonnull byte[] buf) throws IOException {
public void writeTo(@Nonnull byte[] buf) {
System.arraycopy(this.buf, 0, buf, 0, count);
}
}
Expand Down Expand Up @@ -231,12 +231,8 @@ public void write(byte[] b, int off, int len) throws IOException {
private void submit() throws IOException {
emitUntil(emitQueueSize - 1);
emitQueue.add(executor.submit(block));
Block b = freeBlock;
if (b != null)
freeBlock = null;
else
b = new Block();
block = b;
block = freeBlock == null ? new Block() : freeBlock;
freeBlock = null;
}

// Emit If Available - submit always
Expand Down