Skip to content

Commit

Permalink
Fixing new printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalter committed Jun 30, 2015
1 parent 54b131f commit 83ab635
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,9 @@ private[spark] object SparkSubmitUtils {
brr.setRoot(repo)
brr.setName(s"repo-${i + 1}")
cr.add(brr)
// scalastyle:off println
printStream.println(s"$repo added as a remote repository with the name: ${brr.getName}")
// scalastyle:on println
}
}

Expand Down
2 changes: 2 additions & 0 deletions core/src/test/scala/org/apache/spark/util/UtilsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,9 @@ class UtilsSuite extends SparkFunSuite with ResetSystemProperties with Logging {
val buffer = new CircularBuffer(25)
val stream = new java.io.PrintStream(buffer, true, "UTF-8")

// scalastyle:off println
stream.println("test circular test circular test circular test circular test circular")
// scalastyle:on println
assert(buffer.toString === "t circular test circular\n")
}
}
2 changes: 2 additions & 0 deletions sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ class DataFrame private[sql](
* @group action
* @since 1.5.0
*/
// scalastyle:off println
def show(numRows: Int, truncate: Boolean): Unit = println(showString(numRows, truncate))
// scalastyle:on println

/**
* Returns a [[DataFrameNaFunctions]] for working with missing data.
Expand Down

0 comments on commit 83ab635

Please sign in to comment.