From 11c94e0876a14b679b8f538139c38d6e2d824996 Mon Sep 17 00:00:00 2001 From: Xiangrui Meng Date: Mon, 7 Apr 2014 11:59:21 -0700 Subject: [PATCH] add return types --- .../main/scala/org/apache/spark/mllib/util/LabelParsers.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mllib/src/main/scala/org/apache/spark/mllib/util/LabelParsers.scala b/mllib/src/main/scala/org/apache/spark/mllib/util/LabelParsers.scala index 21d633d60504d..6cb3d53c15f60 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/util/LabelParsers.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/util/LabelParsers.scala @@ -38,7 +38,7 @@ class BinaryLabelParser extends LabelParser { object BinaryLabelParser { private lazy val instance = new BinaryLabelParser() /** Gets the default instance of BinaryLabelParser. */ - def apply() = instance + def apply(): BinaryLabelParser = instance } /** @@ -51,5 +51,5 @@ class MulticlassLabelParser extends LabelParser { object MulticlassLabelParser { private lazy val instance = new MulticlassLabelParser() /** Gets the default instance of MulticlassLabelParser. */ - def apply() = instance + def apply(): MulticlassLabelParser = instance }