[ 
https://issues.apache.org/jira/browse/SPARK-28915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jiaqi Li updated SPARK-28915:
-----------------------------
    Description: 
WorkerOffer is a case class, so we don't need to use new when instantiating it, 
which makes code more concise.
{code:java}
private[spark]
case class WorkerOffer(
    executorId: String,
    host: String,
    cores: Int,
    address: Option[String] = None,
    resources: Map[String, Buffer[String]] = Map.empty)
{code}

  was:`WorkerOffer` is a case class, so we don't need to use `new` when 
instantiating it, which makes code more concise.


> The new keyword is not used when instantiating the WorkerOffer.
> ---------------------------------------------------------------
>
>                 Key: SPARK-28915
>                 URL: https://issues.apache.org/jira/browse/SPARK-28915
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.4.3
>            Reporter: Jiaqi Li
>            Priority: Minor
>
> WorkerOffer is a case class, so we don't need to use new when instantiating 
> it, which makes code more concise.
> {code:java}
> private[spark]
> case class WorkerOffer(
>     executorId: String,
>     host: String,
>     cores: Int,
>     address: Option[String] = None,
>     resources: Map[String, Buffer[String]] = Map.empty)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to