diff options
-rw-r--r-- | src/library/scala/Predef.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala index 402913f26d..340f7a8f68 100644 --- a/src/library/scala/Predef.scala +++ b/src/library/scala/Predef.scala @@ -302,13 +302,13 @@ object Predef { implicit def float2double(x: Float): Double = x.toDouble - implicit def byte2Byte(x: Byte) = java.lang.Byte.valueOf(x) - implicit def short2Short(x: Short) = java.lang.Short.valueOf(x) - implicit def char2Character(x: Char) = java.lang.Character.valueOf(x) - implicit def int2Integer(x: Int) = java.lang.Integer.valueOf(x) - implicit def long2Long(x: Long) = java.lang.Long.valueOf(x) - implicit def float2Float(x: Float) = java.lang.Float.valueOf(x) - implicit def double2Double(x: Double) = java.lang.Double.valueOf(x) + implicit def byte2Byte(x: Byte) = new java.lang.Byte(x) + implicit def short2Short(x: Short) = new java.lang.Short(x) + implicit def char2Character(x: Char) = new java.lang.Character(x) + implicit def int2Integer(x: Int) = new java.lang.Integer(x) + implicit def long2Long(x: Long) = new java.lang.Long(x) + implicit def float2Float(x: Float) = new java.lang.Float(x) + implicit def double2Double(x: Double) = new java.lang.Double(x) implicit def boolean2Boolean(x: Boolean) = java.lang.Boolean.valueOf(x) def currentThread = java.lang.Thread.currentThread() |