summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Cruise <alex@metaforsoftware.com>2012-03-15 17:43:50 -0700
committerAlex Cruise <alex@metaforsoftware.com>2012-03-15 17:43:50 -0700
commit57eaf9efbc4d52e1226d8fdccd2b274e860fc198 (patch)
treea7464e2234885dc843827e8d532e5b614a39a2c9 /src
parentc8bc6dfd8f0262ed3aec056bd06a3c1b010e6e9b (diff)
downloadscala-57eaf9efbc4d52e1226d8fdccd2b274e860fc198.tar.gz
scala-57eaf9efbc4d52e1226d8fdccd2b274e860fc198.tar.bz2
scala-57eaf9efbc4d52e1226d8fdccd2b274e860fc198.zip
Tweaked deprecation annotations to avoid warning
Diffstat (limited to 'src')
-rwxr-xr-xsrc/library/scala/xml/Elem.scala2
-rwxr-xr-xsrc/library/scala/xml/Utility.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/xml/Elem.scala b/src/library/scala/xml/Elem.scala
index 605f3cb7fb..cc244a5b88 100755
--- a/src/library/scala/xml/Elem.scala
+++ b/src/library/scala/xml/Elem.scala
@@ -59,7 +59,7 @@ class Elem(
val child: Node*)
extends Node with Serializable
{
- @deprecated(since="2.10", message="this constructor is retained for backward compatibility. Please use the primary constructor, which lets you specify your own preference for `minimizeEmpty`.")
+ @deprecated("This constructor is retained for backward compatibility. Please use the primary constructor, which lets you specify your own preference for `minimizeEmpty`.", "2.10")
def this(prefix: String, label: String, attributes: MetaData, scope: NamespaceBinding, child: Node*) = {
this(prefix, label, attributes, scope, child.isEmpty, child: _*)
}
diff --git a/src/library/scala/xml/Utility.scala b/src/library/scala/xml/Utility.scala
index fce6e7e897..9f944c0e92 100755
--- a/src/library/scala/xml/Utility.scala
+++ b/src/library/scala/xml/Utility.scala
@@ -187,7 +187,7 @@ object Utility extends AnyRef with parsing.TokenTests {
* Note that calling this source-compatible method will result in the same old, arguably almost universally unwanted,
* behaviour.
*/
- @deprecated(since="2.10", message="please use `serialize` instead and specify a `minimizeTags` parameter")
+ @deprecated("Please use `serialize` instead and specify a `minimizeTags` parameter", "2.10")
def toXML(
x: Node,
pscope: NamespaceBinding = TopScope,