cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-1257) Remove @Override annotations when implementing interfaces
Date Tue, 08 Mar 2011 17:08:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-1257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004069#comment-13004069
] 

Jonathan Ellis commented on CASSANDRA-1257:
-------------------------------------------

The purpose of @Override is to cause an error if the parent class changes the name of the
method you were overriding.  This is redundant for interfaces (or abstract methods) since
you already get an error in those cases.

> Remove @Override annotations when implementing interfaces
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-1257
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1257
>             Project: Cassandra
>          Issue Type: Task
>            Reporter: Jeremy Hanna
>            Priority: Trivial
>         Attachments: trunk-1257.patch
>
>
> There are a lot of places in the code where @Override is used where we are simply implementing
an interface instead of extending a class.  This task would just be to clean out those annotations
because they don't make sense - you don't override an interface.  IntelliJ IDEA complains
about it.  Not a big deal but just housekeeping.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message