Re: [Thinlet-development] Upcoming source code reformat.
Brought to you by:
bajzat
From: Stephen C. <sco...@bt...> - 2004-08-16 18:40:46
|
Commons uses 4 spaces for all indents. Line length is typically 80 characters, but allowing longer line to extend to 120 characters. The commons style is generally follow Sun coding style, brackets at end of line etc. if (a < b) { // do stuff } else { // do other stuff } There is no commons coding standards guide itself, just common practices, which I've tried to summarise above. The main thing is to go with the Sun Java defaults (and thus IDE and Java OSS) as much as possible. So, +1 to the reformat ;-) Stephen Stephen Colebourne wrote: > > > Please, 4 spaces not 2. Please. Its just the standard in Java OSS. > > > > Stephen > > (Apache Jakarta Commons committer) > > Oops.. sorry for the confusion, I meant 4 spaces - I use this value > myself. However, I use 2 spaces for secondary indents... :-) > > What's the practice in Commons? What's the e.g. line-wrap length? Any > docs (in addition to the Sun's one) we might consult? > > -- > Best regards, > Andrzej Bialecki |