You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Sergey Vladimirov <vl...@gmail.com> on 2011/06/20 08:19:10 UTC
Code style
Hi,
What is the code style conventions for Apache POI?
--
Sergey Vladimirov
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Re: Code style
Posted by Yegor Kozlov <ye...@dinom.ru>.
It's supposed to be the standard code conventions for the Java Language:
http://www.oracle.com/technetwork/java/codeconv-138413.html
I would say that the following three rules should be used consistently
in all the source code:
1. Indentation: Always use 4 space indents and never use tabs!
2. White space: One space after control statements and between
arguments (i.e. if ( foo ) instead of if(foo)), myFunc( foo, bar, baz
) instead of myFunc(foo,bar,baz)).
3. Blocks: Always enclose with a new line brace.
Eclipse / IntelliJ Idea have built-in code formatters that mostly
follow the above rules.
Yegor
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org