void () { if (BUFFER.length() > MAX_BUFFER_LENGTH) { synchronized (BUFFER) { if (BUFFER.length() > MAX_BUFFER_LENGTH) { BUFFER.delete(0, BUFFER.length() - MAX_BUFFER_LENGTH + MAX_BUFFER_LENGTH / 4); } } } }