Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/15585#discussion_r84484357 --- Diff: mllib/src/test/scala/org/apache/spark/mllib/evaluation/MultilabelMetricsSuite.scala --- @@ -47,7 +47,7 @@ class MultilabelMetricsSuite extends SparkFunSuite with MLlibTestSparkContext { val scoreAndLabels: RDD[(Array[Double], Array[Double])] = sc.parallelize( Seq((Array(0.0, 1.0), Array(0.0, 2.0)), (Array(0.0, 2.0), Array(0.0, 1.0)), - (Array(), Array(0.0)), + (Array.empty[Double], Array(0.0)), --- End diff -- Normally would say don't bother with this either but I know you just cleaned up a lot of this for consistency. I'm neutral about whether it's more readable and it's only test code.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org