Skip to content

Commit 764f93a

Browse files
committed
Remove needless vars from StateSet
1 parent 7b30735 commit 764f93a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/scala/async/internal/StateSet.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import scala.collection.JavaConverters.{asScalaIteratorConverter, iterableAsScal
1919

2020
// Set for StateIds, which are either small positive integers or -symbolID.
2121
final class StateSet {
22-
private var bitSet = new java.util.BitSet()
23-
private var caseSet = new util.HashSet[Integer]()
22+
private val bitSet = new java.util.BitSet()
23+
private val caseSet = new util.HashSet[Integer]()
2424
def +=(stateId: Int): Unit = if (storeInBitSet(stateId)) bitSet.set(stateId) else caseSet.add(stateId)
2525
def contains(stateId: Int): Boolean = if (storeInBitSet(stateId)) bitSet.get(stateId) else caseSet.contains(stateId)
2626
private def storeInBitSet(stateId: Int) = {

0 commit comments

Comments
 (0)