Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Or committed Sep 11, 2015
1 parent 3ec715c commit d48c114
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit d48c114

Please sign in to comment.