Skip to content

Commit f270c5f

Browse files
committed
Followup to scala/scala#6984
It seems I forgot to update some definitions and use sites
1 parent dc60965 commit f270c5f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

library/src/scala/collection/mutable/StringBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ final class StringBuilder(val underlying: java.lang.StringBuilder) extends Abstr
7979

8080
def result() = underlying.toString
8181

82-
override def toString = result
82+
override def toString = result()
8383

8484
override def toArray[B >: Char](implicit ct: scala.reflect.ClassTag[B]) =
8585
ct.runtimeClass match {

library/src/scala/math/Numeric.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@ trait Numeric[T] extends Ordering[T] {
212212
def +(rhs: T) = plus(lhs, rhs)
213213
def -(rhs: T) = minus(lhs, rhs)
214214
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)
222222
}
223223
implicit def mkNumericOps(lhs: T): NumericOps = new NumericOps(lhs)
224224
}

library/src/scala/runtime/RichInt.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class RichInt(val self: Int) extends AnyVal with ScalaNumberProxy[Int] wit
2727
/** Returns `'''true'''` if this number has no decimal component.
2828
* Always `'''true'''` for `RichInt`.
2929
*/
30-
def isWhole() = true
30+
def isWhole = true
3131

3232
override def isValidInt = true
3333
def isValidLong = true

0 commit comments

Comments
 (0)