@@ -10,21 +10,21 @@ private[internal] trait TypeToStrings {
1010
1111 /** The maximum number of recursions allowed in toString
1212 */
13- final val maxTostringRecursions = 50
13+ final val maxToStringRecursions = 50
1414
15- private var _tostringRecursions = 0
16- def tostringRecursions = _tostringRecursions
17- def tostringRecursions_ = (value : Int ) = _tostringRecursions = value
15+ private var _toStringRecursions = 0
16+ def toStringRecursions = _toStringRecursions
17+ def toStringRecursions_ = (value : Int ) = _toStringRecursions = value
1818
19- private var _tostringSubjects = HashSet [Type ]()
20- def tostringSubjects = _tostringSubjects
19+ private var _toStringSubjects = HashSet [Type ]()
20+ def toStringSubjects = _toStringSubjects
2121
2222 protected def typeToString (tpe : Type ): String =
23- if (tostringSubjects contains tpe) {
23+ if (toStringSubjects contains tpe) {
2424 // handles self-referential anonymous classes and who knows what else
2525 " ..."
2626 }
27- else if (tostringRecursions >= maxTostringRecursions ) {
27+ else if (toStringRecursions >= maxToStringRecursions ) {
2828 devWarning(" Exceeded recursion depth attempting to print " + util.shortClassOfInstance(tpe))
2929 if (settings.debug)
3030 (new Throwable ).printStackTrace
@@ -33,11 +33,11 @@ private[internal] trait TypeToStrings {
3333 }
3434 else
3535 try {
36- tostringRecursions += 1
37- tostringSubjects += tpe
36+ toStringRecursions += 1
37+ toStringSubjects += tpe
3838 tpe.safeToString
3939 } finally {
40- tostringSubjects -= tpe
41- tostringRecursions -= 1
40+ toStringSubjects -= tpe
41+ toStringRecursions -= 1
4242 }
4343}
0 commit comments