Commit 60953ed4 authored by Jens Korinth's avatar Jens Korinth
Browse files

Merge branch '2018.1' into evaluate-optimizations

parents 3380ebc2 b1c08ad7
Pipeline #304 passed with stage
in 3 minutes and 10 seconds
......@@ -92,9 +92,10 @@ class MultiFileWatcher(pollInterval: Int = MultiFileWatcher.POLL_INTERVAL) exten
_waitingFor.synchronized { _waitingFor -= p }
}
@scala.annotation.tailrec
private def readFrom(br: BufferedReader, ls: Seq[String] = Seq()): Seq[String] = {
val line = Option(br.readLine())
if (line.nonEmpty) readFrom(br, ls :+ line.get) else ls
val line = scala.util.Try(Option(br.readLine())).toOption.flatten
if (line.isEmpty) ls else readFrom(br, ls :+ line.get)
}
private def startWatchThread: Unit = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment