Skip to content

Commit

Permalink
Revert ListBuffer construction in Rewrites.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
bracevac committed Jan 13, 2025
1 parent cc78467 commit f6b49df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/rewrites/Rewrites.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object Rewrites {
case class ActionPatch(srcPos: SourcePosition, replacement: String)

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

def addPatch(span: Span, replacement: String): Unit =
pbuf += Patch(span, replacement)
Expand Down

0 comments on commit f6b49df

Please sign in to comment.