diff options
author | mpociecha <michal.pociecha@gmail.com> | 2014-12-05 01:48:33 +0100 |
---|---|---|
committer | mpociecha <michal.pociecha@gmail.com> | 2014-12-05 01:48:33 +0100 |
commit | 35811876a3a089706951620e2434d171090ac0b0 (patch) | |
tree | 82f803de8963cd61789404c0ab6ebec145236718 /src/compiler/scala/tools/nsc/classpath/ZipAndJarFileLookupFactory.scala | |
parent | 959d1344b71c9eca1fb60c618d2bc1a4382e250e (diff) | |
download | scala-35811876a3a089706951620e2434d171090ac0b0.tar.gz scala-35811876a3a089706951620e2434d171090ac0b0.tar.bz2 scala-35811876a3a089706951620e2434d171090ac0b0.zip |
Turn off flat classpath by default, mark one of its classes as sealed
This commit addresses code review comments.
The flat classpath is no longer the default classpath representation.
It was the default one just for the test purposes. For now it's not
desirable to make it permanently the default representation.
ZipAndJarFileLookupFactory is marked as sealed - it should help to
limit the ways of creating flat classpath instances for zips and jars.
Diffstat (limited to 'src/compiler/scala/tools/nsc/classpath/ZipAndJarFileLookupFactory.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/classpath/ZipAndJarFileLookupFactory.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/classpath/ZipAndJarFileLookupFactory.scala b/src/compiler/scala/tools/nsc/classpath/ZipAndJarFileLookupFactory.scala index dba3c60b0f..84e21a3ccd 100644 --- a/src/compiler/scala/tools/nsc/classpath/ZipAndJarFileLookupFactory.scala +++ b/src/compiler/scala/tools/nsc/classpath/ZipAndJarFileLookupFactory.scala @@ -18,7 +18,7 @@ import FileUtils._ * It allows us to e.g. reduce significantly memory used by PresentationCompilers in Scala IDE * when there are a lot of projects having a lot of common dependencies. */ -trait ZipAndJarFileLookupFactory { +sealed trait ZipAndJarFileLookupFactory { private val cache = collection.mutable.Map.empty[AbstractFile, FlatClassPath] |