summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-10-25 06:00:59 +0000
committerPaul Phillips <paulp@improving.org>2009-10-25 06:00:59 +0000
commit728775440ccd67928c25914a1e003ff9765ad80b (patch)
treebc0d55939eb9ed99cd869dc5a9dbbc1f7b4c4555 /src/library
parent2cef1c58a54c996243fb85630cce841073c18650 (diff)
downloadscala-728775440ccd67928c25914a1e003ff9765ad80b.tar.gz
scala-728775440ccd67928c25914a1e003ff9765ad80b.tar.bz2
scala-728775440ccd67928c25914a1e003ff9765ad80b.zip
Deprecation patrol.
compile scalac with -deprecation and not cause any machines to catch fire. Most of the remaining warnings are glancing furtively at Tuple2, waiting for the moment to pounce.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/Iterator.scala4
-rw-r--r--src/library/scala/runtime/RichString.scala2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/library/scala/collection/Iterator.scala b/src/library/scala/collection/Iterator.scala
index e5a9e3c075..1e5d0c0a89 100644
--- a/src/library/scala/collection/Iterator.scala
+++ b/src/library/scala/collection/Iterator.scala
@@ -368,6 +368,10 @@ trait Iterator[+A] { self =>
}
}
+ /** !!! Temporary, awaiting more general implementation.
+ */
+ def withFilter(p: A => Boolean) = this.toStream withFilter p
+
/** Returns an iterator over all the elements of this iterator which
* do not satisfy the predicate <code>p</code>.
*
diff --git a/src/library/scala/runtime/RichString.scala b/src/library/scala/runtime/RichString.scala
index 6998e889ca..a1058cf979 100644
--- a/src/library/scala/runtime/RichString.scala
+++ b/src/library/scala/runtime/RichString.scala
@@ -139,7 +139,7 @@ class RichString(val self: String) extends Proxy with IndexedSeq[Char] with Inde
else if (self.length == 0) ""
else {
val chars = self.toCharArray
- chars(0) = chars(0).toUpperCase
+ chars(0) = chars(0).toUpper
new String(chars)
}