mirror of https://github.com/sbt/sbt.git
Merge pull request #2095 from adriaanm/ListBuffer
Do not use `ListBuffer#readOnly`
This commit is contained in:
commit
b52f11535d
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue