Skip to content

Commit 11c94e0

Browse files
committed
add return types
1 parent 7f8eb36 commit 11c94e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/util/LabelParsers.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BinaryLabelParser extends LabelParser {
3838
object BinaryLabelParser {
3939
private lazy val instance = new BinaryLabelParser()
4040
/** Gets the default instance of BinaryLabelParser. */
41-
def apply() = instance
41+
def apply(): BinaryLabelParser = instance
4242
}
4343

4444
/**
@@ -51,5 +51,5 @@ class MulticlassLabelParser extends LabelParser {
5151
object MulticlassLabelParser {
5252
private lazy val instance = new MulticlassLabelParser()
5353
/** Gets the default instance of MulticlassLabelParser. */
54-
def apply() = instance
54+
def apply(): MulticlassLabelParser = instance
5555
}

0 commit comments

Comments
 (0)