You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2015/05/04 16:57:50 UTC

[Cassandra Wiki] Update of "CodeStyle" by JakeLuciani

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "CodeStyle" page has been changed by JakeLuciani:
https://wiki.apache.org/cassandra/CodeStyle?action=diff&rev1=27&rev2=28

   * Prefer requiring initialization in the constructor to setters.
   * avoid redundant "this" references to member fields or methods
   * Do not extract interfaces (or abstract classes) unless you actually need multiple implementations of it
+  * Always include braces for nested levels of conditionals and loops. Only avoid braces for single level.
  
  == Multiline statements ==
   * Try to keep lines under 120 characters, but use good judgement -- it's better to exceed 120 by a little, than split a line that has no natural splitting points.