Skip to content

Commit d48c114

Browse files
author
Andrew Or
committed
Fix style
1 parent 3ec715c commit d48c114

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import java.util.concurrent.atomic.{AtomicReference, AtomicBoolean, AtomicIntege
2727
import java.util.UUID.randomUUID
2828

2929
import scala.collection.JavaConverters._
30-
import scala.collection.JavaConversions._
3130
import scala.collection.{Map, Set}
3231
import scala.collection.generic.Growable
3332
import scala.collection.mutable.{HashMap, HashSet}
@@ -353,10 +352,10 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
353352
if (nonInheritedLocalProperties.nonEmpty) {
354353
// If there are properties that should not be inherited, filter them out
355354
val p = new Properties
356-
val filtered = parent.filter { case (k, _) =>
355+
val filtered = parent.asScala.filter { case (k, _) =>
357356
!nonInheritedLocalProperties.contains(k)
358357
}
359-
p.putAll(filtered)
358+
p.putAll(filtered.asJava)
360359
p
361360
} else {
362361
new Properties(parent)

0 commit comments

Comments
 (0)