summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqilab gamma <qilab@gmx.com>2015-08-04 10:24:22 +0900
committerqilab gamma <qilab@gmx.com>2015-08-04 10:24:22 +0900
commit38d2546120cbcda9a03759515c0ff4145fc188a8 (patch)
tree7c5704a0652d6cb55546e0a6ccd854b7c43b13f5
parent35c8581ea38c8ee7b15d7f5747bff2910c46c64a (diff)
downloadscala-38d2546120cbcda9a03759515c0ff4145fc188a8.tar.gz
scala-38d2546120cbcda9a03759515c0ff4145fc188a8.tar.bz2
scala-38d2546120cbcda9a03759515c0ff4145fc188a8.zip
add @deprecatedName
-rwxr-xr-xsrc/library/scala/collection/LinearSeqOptimized.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/collection/LinearSeqOptimized.scala b/src/library/scala/collection/LinearSeqOptimized.scala
index d5d59fc286..571d58a3f3 100755
--- a/src/library/scala/collection/LinearSeqOptimized.scala
+++ b/src/library/scala/collection/LinearSeqOptimized.scala
@@ -117,7 +117,7 @@ trait LinearSeqOptimized[+A, +Repr <: LinearSeqOptimized[A, Repr]] extends Linea
}
override /*TraversableLike*/
- def foldLeft[B](z: B)(op: (B, A) => B): B = {
+ def foldLeft[B](z: B)(@deprecatedName('f) op: (B, A) => B): B = {
var acc = z
var these = this
while (!these.isEmpty) {
@@ -128,12 +128,12 @@ trait LinearSeqOptimized[+A, +Repr <: LinearSeqOptimized[A, Repr]] extends Linea
}
override /*IterableLike*/
- def foldRight[B](z: B)(op: (A, B) => B): B =
+ def foldRight[B](z: B)(@deprecatedName('f) op: (A, B) => B): B =
if (this.isEmpty) z
else op(head, tail.foldRight(z)(op))
override /*TraversableLike*/
- def reduceLeft[B >: A](op: (B, A) => B): B =
+ def reduceLeft[B >: A](@deprecatedName('f) op: (B, A) => B): B =
if (isEmpty) throw new UnsupportedOperationException("empty.reduceLeft")
else tail.foldLeft[B](head)(op)