You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "David Capwell (Jira)" <ji...@apache.org> on 2020/09/02 17:41:00 UTC
[jira] [Created] (CASSANDRA-16096) Change style guide to include
@Override
David Capwell created CASSANDRA-16096:
-----------------------------------------
Summary: Change style guide to include @Override
Key: CASSANDRA-16096
URL: https://issues.apache.org/jira/browse/CASSANDRA-16096
Project: Cassandra
Issue Type: Improvement
Components: Build, Documentation/Website
Reporter: David Capwell
Assignee: David Capwell
@Override is used by javac to enforce that a method is in fact overriding from an abstract class or an interface and if this stops being true (such as a refactor happens) then a compiler error is thrown; when we default to excluding, it makes it harder to detect that a refactor catches all implementations and can lead to subtle and hard to track down bugs.
This ticket removes the comment in the docs that @Override should be avoided and updated the style guide to include them by default.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org