Dear Wiki user,

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

The following page has been changed by ArinSarkissian:
http://wiki.apache.org/cassandra/CodeStyle

New page:
== General Code Conventions  ==

 * The Cassandra project follows Sun's Java coding conventions 
(http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html) with an important 
exception:
   * { and } are always placed on a new line

== Private_ _Members and Underscores  ==
 * The goal is to not have an "_" character appended or prepended to private 
variables' names
 * There's currently a lot of private variables with an "_" appended to them... 
here's our current policy on this.
   * if you're working on a file with foo_ style private members then please 
keep using that convention.
   * when writing a new class please do not name private variables w/ an 
appended or prepended "_" 

{{{
public class ExampleStuff
{
    private String foo_; // bad - but it's all over the code. if the file uses 
this style then keep using that style
    private String _foo; // bad - don't do this
    private String foo;  // more better
}
}}}

Reply via email to