Skip to content

Commit 4492835

Browse files
committed
lol, dont use a PrintWriter b/c of scalastyle checks
1 parent 0a39b98 commit 4492835

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

yarn/src/test/scala/org/apache/spark/network/yarn/YarnShuffleServiceSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
package org.apache.spark.network.yarn
1818

19-
import java.io.{PrintWriter, File}
19+
import java.io.{DataOutputStream, FileOutputStream, PrintWriter, File}
2020

2121
import org.apache.commons.io.FileUtils
2222
import org.apache.hadoop.yarn.api.records.ApplicationId
@@ -159,8 +159,8 @@ class YarnShuffleServiceSuite extends SparkFunSuite with Matchers with BeforeAnd
159159
// make a corrupt registeredExecutor File
160160
s1.stop()
161161

162-
val out = new PrintWriter(execStateFile)
163-
out.println("42")
162+
val out = new DataOutputStream(new FileOutputStream(execStateFile))
163+
out.writeInt(42)
164164
out.close()
165165

166166
s2 = new YarnShuffleService

0 commit comments

Comments
 (0)