Skip to content

Commit 4e79c37

Browse files
committed
newInstance -> newInstance()
1 parent 51d1fbe commit 4e79c37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/internal/io/HadoopMapReduceCommitProtocol.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class HadoopMapReduceCommitProtocol(jobId: String, path: String)
4343
@transient private var committer: OutputCommitter = _
4444

4545
protected def setupCommitter(context: TaskAttemptContext): OutputCommitter = {
46-
val format = context.getOutputFormatClass.newInstance
46+
val format = context.getOutputFormatClass.newInstance()
4747
// If OutputFormat is Configurable, we should set conf to it.
4848
format match {
4949
case c: Configurable => c.setConf(context.getConfiguration)

core/src/main/scala/org/apache/spark/internal/io/SparkHadoopMapReduceWriter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ object SparkHadoopMapReduceWriter extends Logging {
140140
SparkHadoopWriterUtils.initHadoopOutputMetrics(context)
141141

142142
// Initiate the writer.
143-
val taskFormat = outputFormat.newInstance
143+
val taskFormat = outputFormat.newInstance()
144144
// If OutputFormat is Configurable, we should set conf to it.
145145
taskFormat match {
146146
case c: Configurable => c.setConf(hadoopConf)

0 commit comments

Comments
 (0)