Skip to content

Commit

Permalink
fix compile error in VirtualFileValueCache
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker authored and eed3si9n committed Feb 23, 2024
1 parent c64e3ba commit 72b1d93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/src/main/scala/sbt/internal/VirtualFileValueCache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ object VirtualFileValueCache {
}
}
def apply[A](converter: FileConverter)(f: VirtualFile => A): VirtualFileValueCache[A] = {
import collection.mutable.{ HashMap, Map }
val stampCache: Map[VirtualFileRef, (Long, XStamp)] = new HashMap
import collection.concurrent.Map
import java.util.concurrent.ConcurrentHashMap
import scala.collection.JavaConverters._
val stampCache: Map[VirtualFileRef, (Long, XStamp)] = new ConcurrentHashMap().asScala
make(
Stamper.timeWrap(stampCache, converter, {
case (vf: VirtualFile) => Stamper.forContentHash(vf)
Expand Down

0 comments on commit 72b1d93

Please sign in to comment.