Skip to content

Commit e7871f3

Browse files
authored
Replacing Array[Byte]() by Array.empty[Byte]
1 parent b200a50 commit e7871f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/sources/SaveLoadSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class SaveLoadSuite extends DataSourceTest with SharedSQLContext with BeforeAndA
147147
test("skip empty files in load") {
148148
withTempDir { dir =>
149149
val path = dir.getCanonicalPath
150-
Files.write(Paths.get(path, "empty"), Array[Byte]())
150+
Files.write(Paths.get(path, "empty"), Array.empty[Byte])
151151
Files.write(Paths.get(path, "notEmpty"), "a".getBytes)
152152
val readback = spark.read.option("wholetext", true).text(path)
153153

0 commit comments

Comments
 (0)