summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/SetLike.scala
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2011-12-07 17:20:29 +0100
committerSimon Ochsenreither <simon@ochsenreither.de>2011-12-07 21:40:49 +0100
commit60b90b18d6407b886ed9f12061406fd3ece05e29 (patch)
tree9dc557c387063597c6bf3058666e28495770480e /src/library/scala/collection/SetLike.scala
parent332fec96e31840878bed41dd7b5314b97d8da7c2 (diff)
downloadscala-60b90b18d6407b886ed9f12061406fd3ece05e29.tar.gz
scala-60b90b18d6407b886ed9f12061406fd3ece05e29.tar.bz2
scala-60b90b18d6407b886ed9f12061406fd3ece05e29.zip
Migration message and version cleanup
The @migration annotation can now be used like @deprecation. Old syntax is still supported, but deprecated. Improve wording and consistency of migration messages, migration warnings also print the version in which the change occurred now. Partially fixes SI-4990.
Diffstat (limited to 'src/library/scala/collection/SetLike.scala')
-rw-r--r--src/library/scala/collection/SetLike.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/SetLike.scala b/src/library/scala/collection/SetLike.scala
index b4695363de..7293f3775c 100644
--- a/src/library/scala/collection/SetLike.scala
+++ b/src/library/scala/collection/SetLike.scala
@@ -89,7 +89,7 @@ self =>
// note: this is only overridden here to add the migration annotation,
// which I hope to turn into an Xlint style warning as the migration aspect
// is not central to its importance.
- @migration(2, 8, "Set.map now returns a Set, so it will discard duplicate values.")
+ @migration("Set.map now returns a Set, so it will discard duplicate values.", "2.8.0")
override def map[B, That](f: A => B)(implicit bf: CanBuildFrom[This, B, That]): That = super.map(f)(bf)
/** Tests if some element is contained in this set.