File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ final class StringBuilder(val underlying: java.lang.StringBuilder) extends Abstr
79
79
80
80
def result () = underlying.toString
81
81
82
- override def toString = result
82
+ override def toString = result()
83
83
84
84
override def toArray [B >: Char ](implicit ct : scala.reflect.ClassTag [B ]) =
85
85
ct.runtimeClass match {
Original file line number Diff line number Diff line change @@ -212,13 +212,13 @@ trait Numeric[T] extends Ordering[T] {
212
212
def + (rhs : T ) = plus(lhs, rhs)
213
213
def - (rhs : T ) = minus(lhs, rhs)
214
214
def * (rhs : T ) = times(lhs, rhs)
215
- def unary_- () = negate(lhs)
216
- def abs () : T = Numeric .this .abs(lhs)
217
- def signum () : Int = Numeric .this .signum(lhs)
218
- def toInt () : Int = Numeric .this .toInt(lhs)
219
- def toLong () : Long = Numeric .this .toLong(lhs)
220
- def toFloat () : Float = Numeric .this .toFloat(lhs)
221
- def toDouble () : Double = Numeric .this .toDouble(lhs)
215
+ def unary_- = negate(lhs)
216
+ def abs : T = Numeric .this .abs(lhs)
217
+ def signum : Int = Numeric .this .signum(lhs)
218
+ def toInt : Int = Numeric .this .toInt(lhs)
219
+ def toLong : Long = Numeric .this .toLong(lhs)
220
+ def toFloat : Float = Numeric .this .toFloat(lhs)
221
+ def toDouble : Double = Numeric .this .toDouble(lhs)
222
222
}
223
223
implicit def mkNumericOps (lhs : T ): NumericOps = new NumericOps (lhs)
224
224
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ final class RichInt(val self: Int) extends AnyVal with ScalaNumberProxy[Int] wit
27
27
/** Returns `'''true'''` if this number has no decimal component.
28
28
* Always `'''true'''` for `RichInt`.
29
29
*/
30
- def isWhole () = true
30
+ def isWhole = true
31
31
32
32
override def isValidInt = true
33
33
def isValidLong = true
You can’t perform that action at this time.
0 commit comments