diff --git a/compiler/src/dotty/tools/io/AbstractFile.scala b/compiler/src/dotty/tools/io/AbstractFile.scala index 1ae9bcea423b..676113dfdb5b 100644 --- a/compiler/src/dotty/tools/io/AbstractFile.scala +++ b/compiler/src/dotty/tools/io/AbstractFile.scala @@ -98,7 +98,7 @@ abstract class AbstractFile extends Iterable[AbstractFile] { /** Checks extension case insensitively. */ def hasExtension(other: String) = extension == other.toLowerCase - private lazy val extension: String = Path.extension(name) + private val extension: String = Path.extension(name) /** The absolute file, if this is a relative file. */ def absolute: AbstractFile diff --git a/compiler/src/dotty/tools/io/ZipArchive.scala b/compiler/src/dotty/tools/io/ZipArchive.scala index 6b7c838b638d..9a339a73b0e4 100644 --- a/compiler/src/dotty/tools/io/ZipArchive.scala +++ b/compiler/src/dotty/tools/io/ZipArchive.scala @@ -149,7 +149,7 @@ final class FileZipArchive(file: JFile) extends ZipArchive(file) { override def sizeOption: Option[Int] = Some(zipEntry.getSize.toInt) } - lazy val (root, allDirs) = { + val (root, allDirs) = { val root = new DirEntry("/") val dirs = mutable.HashMap[String, DirEntry]("/" -> root) val zipFile = openZipFile()