Java Coding StandardsPage edited by Phil HarveyChanges (8)
Full ContentThis 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 SummaryThe main things for layout purposes in the standard are:
if (x == 5) { System.out.println("Hello"); }
rather than if (x == 5} System.out.println("Hello");
DetailsIntroductionThis document describes two types of coding standard: 1. Mandatory standards must be followed at all times. Code that does not adhere to mandatory standards will not pass the automated checks (or a code review if the guideline is not stylistic). Source filesThis section defines the general rules associated with the contents of a Java source file and the order in which the each part should be presented. No rules on programming style, naming conventions or indentation are given here.
Java ElementsThis section gives advice on coding the various elements of the Java programming language. Class definitionsThis section gives guidelines for class and interface definitions in Java. The term class in this section is used more broadly to mean class and interface:
Simple StatementsThis section defines the general rules for simple Java statements:
Compound StatementsThis section defines the general rules associated with compound statements in Java:
ExceptionsThis section gives general guidance on the use of exceptions when programming in Java.
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Qpid > Java Coding Standards confluence
- [CONF] Apache Qpid > Java Coding Standard... confluence
- [CONF] Apache Qpid > Java Coding Standard... Phil Harvey (Confluence)