Skip to content

Commit 52247f5

Browse files
committed
Add explicit unit type
1 parent be42bcf commit 52247f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

streaming/src/main/scala/org/apache/spark/streaming/ContextWaiter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private[streaming] class ContextWaiter {
3131
// Guarded by "lock"
3232
private var stopped: Boolean = false
3333

34-
def notifyError(e: Throwable) = {
34+
def notifyError(e: Throwable): Unit = {
3535
lock.lock()
3636
try {
3737
error = e
@@ -41,7 +41,7 @@ private[streaming] class ContextWaiter {
4141
}
4242
}
4343

44-
def notifyStop() = {
44+
def notifyStop(): Unit = {
4545
lock.lock()
4646
try {
4747
stopped = true

0 commit comments

Comments
 (0)