You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "sjk (JIRA)" <ji...@apache.org> on 2014/10/10 06:02:33 UTC

[jira] [Created] (SPARK-3893) declare mutableMap/mutableSet explicitly

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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org