Skip to content

Commit 8117e18

Browse files
committed
Fix the validation problems by lint-scala
1 parent 77fd1b7 commit 8117e18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ private[python] class PythonMLLibAPI extends Serializable {
526526

527527
val documents = data.rdd.map(_.asScala.toArray).map { r =>
528528
r(0).getClass.getSimpleName match {
529-
case "Integer" => (r(0).asInstanceOf[java.lang.Integer].toLong, r(1).asInstanceOf[Vector])
530-
case "Long" => (r(0).asInstanceOf[java.lang.Long].toLong, r(1).asInstanceOf[Vector])
529+
case "Integer" => (r(0).asInstanceOf[java.lang.Integer].toLong, r(1).asInstanceOf[Vector])
530+
case "Long" => (r(0).asInstanceOf[java.lang.Long].toLong, r(1).asInstanceOf[Vector])
531531
case _ => throw new IllegalArgumentException("input values contains invalid type value.")
532532
}
533533
}

0 commit comments

Comments
 (0)