summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorViktor Klang <viktor.klang@gmail.com>2012-06-13 16:24:53 +0200
committerViktor Klang <viktor.klang@gmail.com>2012-06-13 16:24:53 +0200
commit8d0b04aafaf256e5862573b6f46bda193fe01ba9 (patch)
tree740e10033ddae4121c44b3c7562541371d4bf035 /src/library
parent885d64dce1c3a34b01f4ffcbd2132838d3c60443 (diff)
downloadscala-8d0b04aafaf256e5862573b6f46bda193fe01ba9.tar.gz
scala-8d0b04aafaf256e5862573b6f46bda193fe01ba9.tar.bz2
scala-8d0b04aafaf256e5862573b6f46bda193fe01ba9.zip
Clarifying deprecation messages for numeric conversions in Predef
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/Predef.scala48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala
index 65e8549ae1..73024cf5f5 100644
--- a/src/library/scala/Predef.scala
+++ b/src/library/scala/Predef.scala
@@ -320,30 +320,30 @@ object Predef extends LowPriorityImplicits {
// Primitive Widenings --------------------------------------------------------------
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def byte2short(x: Byte): Short = x.toShort
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def byte2int(x: Byte): Int = x.toInt
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def byte2long(x: Byte): Long = x.toLong
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def byte2float(x: Byte): Float = x.toFloat
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def byte2double(x: Byte): Double = x.toDouble
-
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def short2int(x: Short): Int = x.toInt
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def short2long(x: Short): Long = x.toLong
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def short2float(x: Short): Float = x.toFloat
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def short2double(x: Short): Double = x.toDouble
-
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def char2int(x: Char): Int = x.toInt
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def char2long(x: Char): Long = x.toLong
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def char2float(x: Char): Float = x.toFloat
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def char2double(x: Char): Double = x.toDouble
-
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def int2long(x: Int): Long = x.toLong
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def int2float(x: Int): Float = x.toFloat
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def int2double(x: Int): Double = x.toDouble
-
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def long2float(x: Long): Float = x.toFloat
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def long2double(x: Long): Double = x.toDouble
-
- @deprecated("Use a method in an AnyVal's companion object", "2.10.0") def float2double(x: Float): Double = x.toDouble
+ @deprecated("Use .toShort", "2.10.0") def byte2short(x: Byte): Short = x.toShort
+ @deprecated("Use .toInt", "2.10.0") def byte2int(x: Byte): Int = x.toInt
+ @deprecated("Use .toLong", "2.10.0") def byte2long(x: Byte): Long = x.toLong
+ @deprecated("Use .toFloat", "2.10.0") def byte2float(x: Byte): Float = x.toFloat
+ @deprecated("Use .toDouble", "2.10.0") def byte2double(x: Byte): Double = x.toDouble
+
+ @deprecated("Use .toInt", "2.10.0") def short2int(x: Short): Int = x.toInt
+ @deprecated("Use .toLong", "2.10.0") def short2long(x: Short): Long = x.toLong
+ @deprecated("Use .toFloat", "2.10.0") def short2float(x: Short): Float = x.toFloat
+ @deprecated("Use .toDouble", "2.10.0") def short2double(x: Short): Double = x.toDouble
+
+ @deprecated("Use .toInt", "2.10.0") def char2int(x: Char): Int = x.toInt
+ @deprecated("Use .toLong", "2.10.0") def char2long(x: Char): Long = x.toLong
+ @deprecated("Use .toFloat", "2.10.0") def char2float(x: Char): Float = x.toFloat
+ @deprecated("Use .toDouble", "2.10.0") def char2double(x: Char): Double = x.toDouble
+
+ @deprecated("Use .toLong", "2.10.0") def int2long(x: Int): Long = x.toLong
+ @deprecated("Use .toFloat", "2.10.0") def int2float(x: Int): Float = x.toFloat
+ @deprecated("Use .toDouble", "2.10.0") def int2double(x: Int): Double = x.toDouble
+
+ @deprecated("Use .toFloat", "2.10.0") def long2float(x: Long): Float = x.toFloat
+ @deprecated("Use .toDouble", "2.10.0") def long2double(x: Long): Double = x.toDouble
+
+ @deprecated("Use .toDouble", "2.10.0") def float2double(x: Float): Double = x.toDouble
// "Autoboxing" and "Autounboxing" ---------------------------------------------------