Skip to content

Commit ec494e3

Browse files
committed
Merge pull request #19 from speedcom/master
put parenthesis after a 0-arg side-effecting method
2 parents 9aaa3fa + 453594e commit ec494e3

File tree

1 file changed

+2
-2
lines changed
  • src/main/scala/org/learningconcurrency/exercises/ch2

1 file changed

+2
-2
lines changed

src/main/scala/org/learningconcurrency/exercises/ch2/ex5.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ object Ex5 extends App {
2020

2121
def getWait():T = this.synchronized {
2222
while (empty)
23-
this.wait
23+
this.wait()
2424

2525
empty = true
26-
this.notify
26+
this.notify()
2727
x
2828
}
2929

0 commit comments

Comments
 (0)