There isn't a code style that needs to be followed as long as it is consistent, can be checked in checkstyle, can be formatted in Eclipse, IDEA and NetBeans. And the following rules must be followed:
- Use spaces, not tabs
- 4 spaces for Java
- 2 spaces for XML
- 120 column wrap, not 80.
- Wrap on spaces, not on '.' in a method call