Merge pull request #2095 from adriaanm/ListBuffer

Do not use `ListBuffer#readOnly`
This commit is contained in:
Josh Suereth 2015-07-10 12:47:34 -04:00
commit b52f11535d
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class BufferedLogger(delegate: AbstractLogger) extends BasicLogger {
* Flushes the buffer to the delegate logger. This method calls logAll on the delegate
* so that the messages are written consecutively. The buffer is cleared in the process.
*/
def play(): Unit = synchronized { delegate.logAll(buffer.readOnly); buffer.clear() }
def play(): Unit = synchronized { delegate.logAll(buffer.toList); buffer.clear() }
/** Clears buffered events and disables buffering. */
def clear(): Unit = synchronized { buffer.clear(); recording = false }
/** Plays buffered events and disables buffering. */