diff options
-rw-r--r-- | src/library/scala/Predef.scala | 48 |
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" --------------------------------------------------- |