summaryrefslogtreecommitdiff
path: root/test/partest
diff options
context:
space:
mode:
authorRui Gonçalves <ruippeixotog@gmail.com>2015-06-26 22:47:18 +0100
committerRui Gonçalves <ruippeixotog@gmail.com>2015-06-26 22:58:38 +0100
commit66bdc5200f5270f4064c6b92192a43db34136714 (patch)
tree95484a5058ac0ec81e2e1698edea07f54fd597e5 /test/partest
parentd90d8b89687be5c817cc081ed970328c6d8fd13f (diff)
downloadscala-66bdc5200f5270f4064c6b92192a43db34136714.tar.gz
scala-66bdc5200f5270f4064c6b92192a43db34136714.tar.bz2
scala-66bdc5200f5270f4064c6b92192a43db34136714.zip
Fix size update on `mutable.TreeMap#clear()`
The previous implementation has a major bug - although `clear()` sets the root node to `null`, the `size` attribute of the `Tree` was not updated. This effectively meant that even after a `map.clear()`, a call to `map.size` would still yield the old size of the map. The scalacheck test suite was updated to contemplate this issue.
Diffstat (limited to 'test/partest')
0 files changed, 0 insertions, 0 deletions