sjk created SPARK-3893: -------------------------- Summary: declare mutableMap/mutableSet explicitly Key: SPARK-3893 URL: https://issues.apache.org/jira/browse/SPARK-3893 Project: Spark Issue Type: Sub-task Components: Spark Core Affects Versions: 1.1.0 Reporter: sjk
{code:java} // current val workers = new HashSet[WorkerInfo] // sugguest val workers = new mutable.HashSet[WorkerInfo] {code} the other benefit is reminding us whether can use immutable collection instead of. most of map we used is mutable. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org