Skip to content

Commit e6bf7b0

Browse files
committed
add println ignores
1 parent 1bc5554 commit e6bf7b0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

core/src/main/scala/org/apache/spark/deploy/RPackageUtils.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ private[spark] object RPackageUtils extends Logging {
171171
level: Level = Level.FINE,
172172
e: Throwable = null): Unit = {
173173
if (printStream != null) {
174+
// scalastyle:off println
174175
printStream.println(msg)
176+
// scalastyle:on println
175177
if (e != null) {
176178
e.printStackTrace(printStream)
177179
}

core/src/test/scala/org/apache/spark/deploy/RPackageUtilsSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ class RPackageUtilsSuite extends SparkFunSuite with BeforeAndAfterEach {
4848

4949
/** Simple PrintStream that reads data into a buffer */
5050
private class BufferPrintStream extends PrintStream(noOpOutputStream) {
51+
// scalastyle:off println
5152
override def println(line: String) {
53+
// scalastyle:on println
5254
lineBuffer += line
5355
}
5456
}

0 commit comments

Comments
 (0)