Skip to content

Commit e69ca30

Browse files
bracevactgodzik
authored andcommitted
Revert ListBuffer construction in Rewrites.scala
[Cherry-picked f6b49df]
1 parent ebafdf2 commit e69ca30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/rewrites/Rewrites.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object Rewrites {
3232
case class ActionPatch(srcPos: SourcePosition, replacement: String)
3333

3434
private class Patches(source: SourceFile) {
35-
private[Rewrites] val pbuf = mutable.ListBuffer.empty[Patch]
35+
private[Rewrites] val pbuf = new mutable.ListBuffer[Patch]()
3636

3737
def addPatch(span: Span, replacement: String): Unit =
3838
pbuf += Patch(span, replacement)

0 commit comments

Comments
 (0)