Skip to content

Commit 7b5d840

Browse files
author
Andrew Or
committed
Fix style
1 parent 76b605c commit 7b5d840

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

core/src/test/scala/org/apache/spark/util/JsonProtocolSuite.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import java.util.Properties
2222
import scala.collection.Map
2323

2424
import org.json4s.jackson.JsonMethods._
25+
import org.scalatest.exceptions.TestFailedException
2526

2627
import org.apache.spark._
2728
import org.apache.spark.executor._
@@ -30,7 +31,6 @@ import org.apache.spark.scheduler._
3031
import org.apache.spark.scheduler.cluster.ExecutorInfo
3132
import org.apache.spark.shuffle.MetadataFetchFailedException
3233
import org.apache.spark.storage._
33-
import org.scalatest.exceptions.TestFailedException
3434

3535
class JsonProtocolSuite extends SparkFunSuite {
3636

@@ -640,8 +640,11 @@ class JsonProtocolSuite extends SparkFunSuite {
640640
private def assertJsonStringEquals(expected: String, actual: String, metadata: String) {
641641
val formatJsonString = (json: String) => json.replaceAll("[\\s|]", "")
642642
if (formatJsonString(expected) != formatJsonString(actual)) {
643+
// scalastyle:off
644+
// This prints something useful if the JSON strings don't match
643645
println("=== EXPECTED ===\n" + pretty(parse(expected)) + "\n")
644646
println("=== ACTUAL ===\n" + pretty(parse(actual)) + "\n")
647+
// scalastyle:on
645648
throw new TestFailedException(s"$metadata JSON did not equal", 1)
646649
}
647650
}

sql/core/src/main/scala/org/apache/spark/sql/execution/metric/SQLMetrics.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package org.apache.spark.sql.execution.metric
1919

20-
import org.apache.spark.{Accumulators, Accumulable, AccumulableParam, SparkContext}
20+
import org.apache.spark.{Accumulable, AccumulableParam, Accumulators, SparkContext}
2121
import org.apache.spark.util.Utils
2222

2323
/**

0 commit comments

Comments
 (0)