diff --git a/compiler/src/dotty/tools/io/ZipArchive.scala b/compiler/src/dotty/tools/io/ZipArchive.scala index 3a4d32614c82..9af935690ffc 100644 --- a/compiler/src/dotty/tools/io/ZipArchive.scala +++ b/compiler/src/dotty/tools/io/ZipArchive.scala @@ -160,7 +160,7 @@ final class FileZipArchive(jpath: JPath, release: Option[String]) extends ZipArc override def sizeOption: Option[Int] = Some(zipEntry.getSize.toInt) } - @volatile lazy val (root, allDirs): (DirEntry, collection.Map[String, DirEntry]) = { + lazy val (root, allDirs): (DirEntry, collection.Map[String, DirEntry]) = { val root = new DirEntry("/", null) val dirs = mutable.HashMap[String, DirEntry]("/" -> root) val zipFile = openZipFile() diff --git a/sbt-test/sbt-dotty/scaladoc/src/main/scala/AutoParamTupling.scala b/sbt-test/sbt-dotty/scaladoc/src/main/scala/AutoParamTupling.scala index 3636fd218ca3..7010a43a5107 100644 --- a/sbt-test/sbt-dotty/scaladoc/src/main/scala/AutoParamTupling.scala +++ b/sbt-test/sbt-dotty/scaladoc/src/main/scala/AutoParamTupling.scala @@ -11,7 +11,7 @@ object AutoParamTupling { * In order to get thread safety, you need to put @volatile before lazy vals. * https://dotty.epfl.ch/docs/reference/changed-features/lazy-vals.html */ - @volatile lazy val xs: List[String] = List("d", "o", "t", "t", "y") + lazy val xs: List[String] = List("d", "o", "t", "t", "y") /** * Current behaviour in Scala 2.12.2 :