You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by dc...@apache.org on 2020/09/02 18:37:20 UTC

[cassandra] branch trunk updated: Change style guide to include @Override

This is an automated email from the ASF dual-hosted git repository.

dcapwell pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 614d7d0  Change style guide to include @Override
614d7d0 is described below

commit 614d7d06f4964f03681e9e90d98ddf3562c47598
Author: David Capwell <dc...@apache.org>
AuthorDate: Wed Sep 2 11:34:28 2020 -0700

    Change style guide to include @Override
    
    patch by David Capwell for CASSANDRA-16096
---
 doc/source/development/code_style.rst | 1 -
 ide/idea/codeStyleSettings.xml        | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 5a486a4..85287ed 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -35,7 +35,6 @@ Exception handling
 Boilerplate
 -----------
 
- - Avoid redundant ``@Override`` annotations when implementing abstract or interface methods.
  - Do not implement equals or hashcode methods unless they are actually needed.
  - Prefer public final fields to private fields with getters. (But prefer encapsulating behavior in "real" methods to either.)
  - Prefer requiring initialization in the constructor to setters.
diff --git a/ide/idea/codeStyleSettings.xml b/ide/idea/codeStyleSettings.xml
index d9190a7..a104924 100644
--- a/ide/idea/codeStyleSettings.xml
+++ b/ide/idea/codeStyleSettings.xml
@@ -3,7 +3,7 @@
   <component name="ProjectCodeStyleSettingsManager">
     <option name="PER_PROJECT_SETTINGS">
       <value>
-        <option name="INSERT_OVERRIDE_ANNOTATION" value="false" />
+        <option name="INSERT_OVERRIDE_ANNOTATION" value="true" />
         <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="100" />
         <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="100" />
         <option name="IMPORT_LAYOUT_TABLE">
@@ -272,4 +272,4 @@
     </option>
     <option name="USE_PER_PROJECT_SETTINGS" value="true" />
   </component>
-</project>
\ No newline at end of file
+</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org