You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Apache Wiki <wi...@apache.org> on 2010/01/16 00:32:12 UTC
[Httpcomponents Wiki] Trivial Update of "CodingConventions" by TonyPoppleton
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Httpcomponents Wiki" for change notification.
The "CodingConventions" page has been changed by TonyPoppleton.
http://wiki.apache.org/HttpComponents/CodingConventions?action=diff&rev1=5&rev2=6
--------------------------------------------------
* (TODO the following rule is not adhered to anywhere, but I would recommend it rather than using the this. prefix) All instance fields should start with the m prefix (this is also setup in the standard preferences). Don't use m prefix on local variables.
* All static final fields should be capitalized, static non-final fields should have an s prefix
* Make fields final when possible
- * Don't use public or protected fields
+ * Don't use public or protected fields (unless they are immutable/final)
* All fields in an enum should be final (i.e. all enum instances should be immutable)
}}}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org