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 AlekseyYeschenko
Date Tue, 25 Nov 2014 21:27:22 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 AlekseyYeschenko:
https://wiki.apache.org/cassandra/CodeStyle?action=diff&rev1=26&rev2=27

  }}}
   * When splitting a ternary, use one line per clause, carry the operator, and align like
this:
  {{{
- some_variable_in_this_class = the_user_input_this_variable == null
-                               ? doFoo()
-                               : doBar();
+ var = bar == null
+     ? doFoo()
+     : doBar();
  }}}
  == Whitespace ==
   * Please make sure to use 4 spaces instead of the tab character for all your indentation

Mime
View raw message