You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2019/09/29 19:56:00 UTC
[jira] [Created] (SPARK-29291) Remove use of procedure-like method
definition for 2.13
Sean R. Owen created SPARK-29291:
------------------------------------
Summary: Remove use of procedure-like method definition for 2.13
Key: SPARK-29291
URL: https://issues.apache.org/jira/browse/SPARK-29291
Project: Spark
Issue Type: Sub-task
Components: Build, Spark Core
Affects Versions: 3.0.0
Reporter: Sean R. Owen
Assignee: Sean R. Owen
Scala 2.13 warns where procedure-like syntax is used to define methods:
{code}
[WARNING] [Warn] /Users/seanowen/Documents/spark_2.13/core/src/main/scala/org/apache/spark/ContextCleaner.scala:74: procedure syntax is deprecated: instead, add `: Unit =` to explicitly declare `run`'s return type
...
{code}
There are a lot of them, but it's easy to fix.
{code}
def foo(): Unit = { }
{code}
not
{code}
def foo() { }
{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