You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jiaqi Li (Jira)" <ji...@apache.org> on 2019/09/25 01:50:00 UTC
[jira] [Closed] (SPARK-28915) The new keyword is not used when
instantiating the WorkerOffer.
[ https://issues.apache.org/jira/browse/SPARK-28915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiaqi Li closed SPARK-28915.
----------------------------
> 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.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org