From 24f2a3d73101e9e3c4f845f413f7a6dc2ac452af Mon Sep 17 00:00:00 2001 From: Rex Kerr Date: Fri, 31 Jan 2014 20:27:37 -0800 Subject: SI-4997 deprecate StringLike.linesIterator for StringLike.lines Deprecated. lines is by far more consistent with the rest of the naming in the library. --- src/library/scala/collection/immutable/StringLike.scala | 1 + test/files/run/global-showdef.scala | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3