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 2013/08/10 08:27:22 UTC

[Cassandra Wiki] Trivial Update of "CodeStyle" by JonathanEllis

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 JonathanEllis:
https://wiki.apache.org/cassandra/CodeStyle?action=diff&rev1=21&rev2=22

Comment:
modernize sample code

   * When splitting inside a method call, use one line per parameter and align them, like this:
  
  {{{
- SSTableWriter writer = new SSTableWriter(cfStore.getTempSSTablePath(),
+ SSTableWriter writer = new SSTableWriter(cfs.getTempSSTablePath(),
-                                          columnFamilies_.size(),
+                                          columnFamilies.size(),
                                           StorageService.getPartitioner());
  }}}
   * When splitting a ternary, use one line per clause, carry the operator, and align like this: