Skip to content
Closed
Prev Previous commit
Next Next commit
Fix style
  • Loading branch information
Andrew Or committed Sep 11, 2015
commit d48c11400b11e58d6ee3a4f5d9c330dd1736f25c
5 changes: 2 additions & 3 deletions core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import java.util.concurrent.atomic.{AtomicReference, AtomicBoolean, AtomicIntege
import java.util.UUID.randomUUID

import scala.collection.JavaConverters._
import scala.collection.JavaConversions._
import scala.collection.{Map, Set}
import scala.collection.generic.Growable
import scala.collection.mutable.{HashMap, HashSet}
Expand Down Expand Up @@ -353,10 +352,10 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
if (nonInheritedLocalProperties.nonEmpty) {
// If there are properties that should not be inherited, filter them out
val p = new Properties
val filtered = parent.filter { case (k, _) =>
val filtered = parent.asScala.filter { case (k, _) =>
!nonInheritedLocalProperties.contains(k)
}
p.putAll(filtered)
p.putAll(filtered.asJava)
p
} else {
new Properties(parent)
Expand Down