summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorPavel Pavlov <pavel.e.pavlov@gmail.com>2014-02-08 19:34:26 +0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-02-24 21:32:38 -0800
commite0079c4274e418720c54b5e06e08adef023d7e79 (patch)
treeb3641dab23182fa114b576b2c3841f03cffa5789 /.gitignore
parent7c709e122f7471353749525cff15602783fb348c (diff)
downloadscala-e0079c4274e418720c54b5e06e08adef023d7e79.tar.gz
scala-e0079c4274e418720c54b5e06e08adef023d7e79.tar.bz2
scala-e0079c4274e418720c54b5e06e08adef023d7e79.zip
SI-8251 deprecate `ListBuffer::readOnly`
This is the first step towards fixing the unexpected behavior of `ListBuffer`. Many of `ListBuffer`'s operations are forwarded to the underlying `List`, essentially leaking that abstraction to clients that call e.g., `toIterable`. When the buffer changes, the `Iterable` obtained through `toIterable` will reflect that change. To avoid this exposure, call `toList` to obtain an immutable copy. See also: https://groups.google.com/d/msg/scala-internals/g_-gIWgB8Os/kWazrALbLKEJ https://gist.github.com/paulp/9081797
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions