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 2014/11/25 22:27:22 UTC
[Cassandra Wiki] Update of "CodeStyle" by AlekseyYeschenko
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