diff options
author | Rex Kerr <ichoran@gmail.com> | 2014-01-31 20:27:37 -0800 |
---|---|---|
committer | Rex Kerr <ichoran@gmail.com> | 2014-01-31 20:27:37 -0800 |
commit | 24f2a3d73101e9e3c4f845f413f7a6dc2ac452af (patch) | |
tree | b5d362fc6610139c8fa06457f75a1067a0ab625c | |
parent | 624e668acfead08289078662d43d281b7b445d71 (diff) | |
download | scala-24f2a3d73101e9e3c4f845f413f7a6dc2ac452af.tar.gz scala-24f2a3d73101e9e3c4f845f413f7a6dc2ac452af.tar.bz2 scala-24f2a3d73101e9e3c4f845f413f7a6dc2ac452af.zip |
SI-4997 deprecate StringLike.linesIterator for StringLike.lines
Deprecated. lines is by far more consistent with the rest of the naming in the library.
-rw-r--r-- | src/library/scala/collection/immutable/StringLike.scala | 1 | ||||
-rw-r--r-- | test/files/run/global-showdef.scala | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/library/scala/collection/immutable/StringLike.scala b/src/library/scala/collection/immutable/StringLike.scala index 43d46cf4d0..8e1d950d00 100644 --- a/src/library/scala/collection/immutable/StringLike.scala +++ b/src/library/scala/collection/immutable/StringLike.scala @@ -131,6 +131,7 @@ self => * end characters, i.e. apply `.stripLineEnd` to all lines * returned by `linesWithSeparators`. */ + @deprecated("Use `lines` instead.","2.11.0") def linesIterator: Iterator[String] = linesWithSeparators map (line => new WrappedString(line).stripLineEnd) diff --git a/test/files/run/global-showdef.scala b/test/files/run/global-showdef.scala index c3ace590ed..1d4891fd1f 100644 --- a/test/files/run/global-showdef.scala +++ b/test/files/run/global-showdef.scala @@ -54,7 +54,7 @@ object Bippy { val run = new compiler.Run() run.compileSources(List(src)) } - output.linesIterator.toList + output.lines.toList } def showClass(name: String) = lines("-Yshow:typer", "-Xshow-class", name) def showObject(name: String) = lines("-Yshow:typer", "-Xshow-object", name) |