Permalink
Browse files

Remove gratuitous var

In favour of a somber val.
  • Loading branch information...
1 parent 6357c8d commit f72354c6cba0d20dda308e531c6e1b129da3ed00 @retronym retronym committed with adriaanm Jan 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/compiler/scala/tools/nsc/typechecker/PatternMatching.scala
@@ -1904,7 +1904,7 @@ trait PatternMatching extends Transform with TypingTransformers with ast.TreeDSL
}
class UniqueSym(variable: Var, const: Const) extends Sym(variable, const)
object Sym {
- private var uniques: util.HashSet[Sym] = new util.HashSet("uniques", 512)
+ private val uniques: util.HashSet[Sym] = new util.HashSet("uniques", 512)
def apply(variable: Var, const: Const): Sym = {
val newSym = new UniqueSym(variable, const)
(uniques findEntryOrUpdate newSym)

0 comments on commit f72354c

Please sign in to comment.