Skip to content

Commit 9862b9a

Browse files
author
Alain
committed
Pass scala coding style checking
1 parent 44ba947 commit 9862b9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/tree/model/InformationGainStats.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class InformationGainStats(
3939
val rightPredict: Predict) extends Serializable {
4040

4141
override def toString: String = {
42-
s"gain = $gain, impurity = $impurity, left impurity = $leftImpurity, right impurity = $rightImpurity"
42+
s"gain = $gain, impurity = $impurity, left impurity = $leftImpurity, " +
43+
s"right impurity = $rightImpurity"
4344
}
4445

4546
override def equals(o: Any): Boolean = o match {

mllib/src/main/scala/org/apache/spark/mllib/tree/model/Predict.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Predict(
2929
val predict: Double,
3030
val prob: Double = 0.0) extends Serializable {
3131

32-
override def toString: String = s"$predict(prob = $prob)"
32+
override def toString: String = s"$predict (prob = $prob)"
3333

3434
override def equals(other: Any): Boolean = {
3535
other match {

0 commit comments

Comments
 (0)