Skip to content

Commit 5d8d0c9

Browse files
committed
SPARK-22830 Scala Coding style - Changes made
1 parent 9da7e36 commit 5d8d0c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/src/main/scala/org/apache/spark/examples/HdfsTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ object HdfsTest {
3939
val start = System.currentTimeMillis()
4040
for (x <- mapped) { x + 2 }
4141
val end = System.currentTimeMillis()
42-
println(s"Iteration ${iter} took ${(end-start)} ms")
42+
println(s"Iteration $iter took ${end-start} ms")
4343
}
4444
spark.stop()
4545
}

examples/src/main/scala/org/apache/spark/examples/SparkALS.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ object SparkALS {
8080

8181
def showWarning() {
8282
System.err.println(
83-
s"""WARN: This is a naive implementation of ALS and is given as an example!
83+
"""WARN: This is a naive implementation of ALS and is given as an example!
8484
|Please use org.apache.spark.ml.recommendation.ALS
8585
|for more conventional use.
8686
""".stripMargin)
@@ -100,7 +100,7 @@ object SparkALS {
100100
ITERATIONS = iters.getOrElse("5").toInt
101101
slices = slices_.getOrElse("2").toInt
102102
case _ =>
103-
System.err.println(s"Usage: SparkALS [M] [U] [F] [iters] [partitions]")
103+
System.err.println("Usage: SparkALS [M] [U] [F] [iters] [partitions]")
104104
System.exit(1)
105105
}
106106

0 commit comments

Comments
 (0)