THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
This page documents the standard adopted for Java code in the Qpid project. All committers are expected to follow these standards; checkstyle or similar is used to check compliance.
Executive Summary
The main things in the standard are:
- Indent using four spaces. No tabs.
- braces always go on new lines, e.g.
if (x == 5) { System.out.println("Hello"); }
rather than
if (x == 5} { System.out.println("Hello"); }
- Always add braces, e.g.
if (x == 5) { System.out.println("Hello"); }
rather than
if (x == 5} System.out.println("Hello");
- Fields prefixed with underscores, e.g. _messageCount
- Spaces after keywords but no spaces either before or after parentheses in method calls, e.g.
rather than
if (x == 5)
butif(x==5)
rather thanfoo.bar(4, 5)
foo.bar( 4, 5 )