Code formatting

Note, these guidelines do not cover:

  • third-party code imported into the source tree, which is covered by the guidelines for the upstream projects

  • released schema files which would require re-releasing if changed by reindenting

All languages

  • Use spaces to indent; do not ever use tabs


All Java code is formatted with:


All XML code is formatted with:

  • an indentation size of two spaces

  • attributes on multiple lines aligned vertically after the element name.