int totalMessageSize = overflow ? MESSAGE_BUFFER_SIZE + OVERFLOW_SIZE
int newlineAdjust = overflowLastChar == NEW_LINE_CHAR ? 0 : -1; int totalMessageSize = overflow ? MESSAGE_BUFFER_SIZE + OVERFLOW_SIZE + newlineAdjust
  private void flushBuffer() {    int totalMessageSize = overflow ? MESSAGE_BUFFER_SIZE + OVERFLOW_SIZE      : bufferIndex;    if (threadIdFlag)      Strings.writeThreadId(buffer, totalMessageSize);    else      Strings.write(buffer, totalMessageSize);    threadIdFlag = false;    overflow = false;    bufferIndex = 0;  }