Skip to content

Commit 6b73fcb

Browse files
author
Marcelo Vanzin
committed
Scalastyle.
1 parent c671c46 commit 6b73fcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,18 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
240240

241241
def jars: Seq[String] = _jars
242242
def files: Seq[String] = _files
243-
def master = _conf.get("spark.master")
244-
def appName = _conf.get("spark.app.name")
243+
def master: String = _conf.get("spark.master")
244+
def appName: String = _conf.get("spark.app.name")
245245

246-
private[spark] def isEventLogEnabled = _conf.getBoolean("spark.eventLog.enabled", false)
246+
private[spark] def isEventLogEnabled: Boolean = _conf.getBoolean("spark.eventLog.enabled", false)
247247
private[spark] def eventLogDir: Option[String] = _eventLogDir
248248
private[spark] def eventLogCodec: Option[String] = _eventLogCodec
249249

250250
// Generate the random name for a temp folder in Tachyon
251251
// Add a timestamp as the suffix here to make it more safe
252252
val tachyonFolderName = "spark-" + randomUUID.toString()
253253

254-
def isLocal = (master == "local" || master.startsWith("local["))
254+
def isLocal: Boolean = (master == "local" || master.startsWith("local["))
255255

256256
// An asynchronous listener bus for Spark events
257257
private[spark] val listenerBus = new LiveListenerBus

0 commit comments

Comments
 (0)