-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
migration.scala
30 lines (28 loc) · 1.03 KB
/
migration.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala.annotation
/**
* An annotation that marks a member as having changed semantics
* between versions. This is intended for methods which for one
* reason or another retain the same name and type signature,
* but some aspect of their behavior is different. An illustrative
* examples is Stack.iterator, which reversed from LIFO to FIFO
* order between Scala 2.7 and 2.8.
*
* @param message A message describing the change, which is emitted
* by the compiler if the flag `-Xmigration` indicates a version
* prior to the changedIn version.
*
* @param changedIn The version, in which the behaviour change was
* introduced.
*/
private[scala] final class migration(message: String, changedIn: String) extends scala.annotation.ConstantAnnotation