Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0
-
None
Description
Scala 2.13 warns where procedure-like syntax is used to define methods:
[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
...
There are a lot of them, but it's easy to fix.
def foo(): Unit = { }
not
def foo() { }
Attachments
Issue Links
- links to