Skip to content

Commit 4377a2a

Browse files
committed
Fixed compile error. Too quick on the trigger as usual.
1 parent 2fbd858 commit 4377a2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/scoverage/Invoker.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import scala.collection.concurrent.TrieMap
77
object Invoker {
88

99
private val threadFile = new ThreadLocal[FileWriter]
10-
private val invoked = TrieMap.empty[Int, Any]
10+
private val ids = TrieMap.empty[Int, Any]
1111

1212
/**
1313
* We record that the given id has been invoked by appending its id to the coverage
@@ -30,7 +30,7 @@ object Invoker {
3030
// times since for coverage we only care about 1 or more, (it just slows things down to
3131
// do it more than once), anything we can do to help is good. This helps especially with code
3232
// that is executed many times quickly, eg tight loops.
33-
if (!invoked.contains(id)) {
33+
if (!ids.contains(id)) {
3434
// Each thread writes to a separate measurement file, to reduce contention
3535
// and because file appends via FileWriter are not atomic on Windows.
3636
var writer = threadFile.get()
@@ -40,7 +40,7 @@ object Invoker {
4040
threadFile.set(writer)
4141
}
4242
writer.append(id.toString + '\n').flush()
43-
invoked.put(id, ())
43+
ids.put(id, ())
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)