Change style guide to include @Override

patch by David Capwell for CASSANDRA-16096
This commit is contained in:
David Capwell 2020-09-02 11:34:28 -07:00
parent 419099c92b
commit 614d7d06f4
2 changed files with 2 additions and 3 deletions

View File

@ -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.

View File

@ -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>
</project>