cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "CodeStyle" by JakeLuciani
Date Mon, 04 May 2015 14:57:50 GMT
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.

Mime
View raw message