Update RingBuffer.java