Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
60953ed4
Commit
60953ed4
authored
Feb 23, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/tapasco/filemgmt/MultiFileWatcher.scala
View file @
60953ed4
...
...
@@ -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
.
non
Empty
)
readFrom
(
br
,
ls
:+
line
.
get
)
else
ls
val
line
=
scala
.
util
.
Try
(
Option
(
br
.
readLine
())
).
toOption
.
flatten
if
(
line
.
is
Empty
)
ls
else
readFrom
(
br
,
ls
:+
line
.
get
)
}
private
def
startWatchThread
:
Unit
=
{
...
...
Jens Korinth
@jk
mentioned in commit
786777b1
·
Feb 23, 2018
mentioned in commit
786777b1
mentioned in commit 786777b12cd7d84cb7b8fba48a52dd5d8f322840
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment