mirror of https://github.com/sbt/sbt.git
Merge pull request #7471 from Friendseeker/stamps-followup
Fix compile error in `VirtualFileValueCache`
This commit is contained in:
commit
4151f4e6c0
|
|
@ -32,8 +32,10 @@ object VirtualFileValueCache {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
def apply[A](converter: FileConverter)(f: VirtualFile => A): VirtualFileValueCache[A] = {
|
def apply[A](converter: FileConverter)(f: VirtualFile => A): VirtualFileValueCache[A] = {
|
||||||
import collection.mutable.{ HashMap, Map }
|
import collection.concurrent.Map
|
||||||
val stampCache: Map[VirtualFileRef, (Long, XStamp)] = new HashMap
|
import java.util.concurrent.ConcurrentHashMap
|
||||||
|
import scala.collection.JavaConverters._
|
||||||
|
val stampCache: Map[VirtualFileRef, (Long, XStamp)] = new ConcurrentHashMap().asScala
|
||||||
make(
|
make(
|
||||||
Stamper.timeWrap(stampCache, converter, {
|
Stamper.timeWrap(stampCache, converter, {
|
||||||
case (vf: VirtualFile) => Stamper.forContentHash(vf)
|
case (vf: VirtualFile) => Stamper.forContentHash(vf)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue