summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarkus Jura <markus.jura@gmail.com>2017-02-13 11:15:58 +0100
committerMarkus Jura <markus.jura@gmail.com>2017-02-13 11:15:58 +0100
commit55d542732a14cf989f31b69b9381fc71193bf5ca (patch)
treefc7f4a105b4412880b0c0ba7bc0ef044cf4db00f /src
parent502e3c6296e5e997549b7e496e0bbfa62c522110 (diff)
downloadscala-55d542732a14cf989f31b69b9381fc71193bf5ca.tar.gz
scala-55d542732a14cf989f31b69b9381fc71193bf5ca.tar.bz2
scala-55d542732a14cf989f31b69b9381fc71193bf5ca.zip
Changing deprecation warning to lineStream
The deprecation text of `ProcessBuilder.lines(log: ProcessLogger)` and `ProcessBuilder.lines_!(log: ProcessLogger) mentions to use the method `stream` and `stream_!` respectively. These methods do not exists. The text has been changed to use `lineStream` and `lineStream_!` respectively.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/sys/process/ProcessBuilder.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/sys/process/ProcessBuilder.scala b/src/library/scala/sys/process/ProcessBuilder.scala
index 8288d8d480..b7966b0341 100644
--- a/src/library/scala/sys/process/ProcessBuilder.scala
+++ b/src/library/scala/sys/process/ProcessBuilder.scala
@@ -186,7 +186,7 @@ trait ProcessBuilder extends Source with Sink {
def lineStream(log: ProcessLogger): Stream[String]
/** Deprecated (renamed). Use `lineStream(log: ProcessLogger)` instead. */
- @deprecated("use stream instead", "2.11.0")
+ @deprecated("use lineStream instead", "2.11.0")
def lines(log: ProcessLogger): Stream[String] = lineStream(log)
/** Starts the process represented by this builder. The output is returned as
@@ -210,7 +210,7 @@ trait ProcessBuilder extends Source with Sink {
def lineStream_!(log: ProcessLogger): Stream[String]
/** Deprecated (renamed). Use `lineStream_!(log: ProcessLogger)` instead. */
- @deprecated("use stream_! instead", "2.11.0")
+ @deprecated("use lineStream_! instead", "2.11.0")
def lines_!(log: ProcessLogger): Stream[String] = lineStream_!(log)
/** Starts the process represented by this builder, blocks until it exits, and