Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/20070#discussion_r158945588 --- Diff: examples/src/main/scala/org/apache/spark/examples/mllib/AssociationRulesExample.scala --- @@ -42,14 +42,13 @@ object AssociationRulesExample { val results = ar.run(freqItemsets) results.collect().foreach { rule => - println("[" + rule.antecedent.mkString(",") - + "=>" - + rule.consequent.mkString(",") + "]," + rule.confidence) + println(s"[${rule.antecedent.mkString(",")}=>${rule.consequent.mkString(",")} ]" + + s" ${rule.confidence}") } // $example off$ sc.stop() } } -// scalastyle:on println +// scalastyle:on println --- End diff -- It didn't like the lack of newline at the end of this file
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org