You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Bjørn Jørgensen (Jira)" <ji...@apache.org> on 2022/05/06 08:00:00 UTC
[jira] [Commented] (SPARK-39111) Mark overriden methods with `@override` annotation
[ https://issues.apache.org/jira/browse/SPARK-39111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532697#comment-17532697 ]
Bjørn Jørgensen commented on SPARK-39111:
-----------------------------------------
What tool is it that you are using.
I`m using [sonarqube|https://www.sonarqube.org] and the only report that I get on override are 5
!override.png!
> Mark overriden methods with `@override` annotation
> --------------------------------------------------
>
> Key: SPARK-39111
> URL: https://issues.apache.org/jira/browse/SPARK-39111
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 2.3.0
> Reporter: qian
> Priority: Minor
> Attachments: override.png
>
>
> An overridden method from an interface or abstract class must be marked with {{@Override}} annotation. To accurately determine whether the overriding is successful, an {{@Override}} annotation is necessary. Meanwhile, once the method signature in the abstract class is changed, the implementation class will report a compile-time error immediately.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org