Java Programming Peer Review Checklist V 2.0
Java Programming Peer Review Checklist V 2.0
Science Infusion and Software Engineering Process Group (SISEPG) Java Programming Peer
Review Checklist
Code Approved
The following check list is to be used in the assessment of Java source code during a peer
review. Items which represent the code being reviewed should be checked.
2.2 Indention
____ Three or four spaces are used for indentation and done so consistently
____ No tabs are used to indent
2.3 Braces
____ Consistent bracing style is used, either the preferred Allman style or the
Kernighan and Ritchie style (a.k.a, OTBS).
1 Version 2.0
03/28/2008
NOAA National Weather Service/OHD
Science Infusion and Software Engineering Process Group (SISEPG) Java Programming Peer
Review Checklist
comments, package/import statements, class/interface declarations which include
class variable/attributes declarations, constructors, and methods).
3. Java Guidelines
3.1 Line Length
____ Where practical, line length does not exceed 80 characters.
___ When line length must exceed 80 characters, it does NOT exceed 120 characters.
2 Version 2.0
03/28/2008
NOAA National Weather Service/OHD
Science Infusion and Software Engineering Process Group (SISEPG) Java Programming Peer
Review Checklist
3.2 Wrapping Lines
____ Line break occurs after a comma or an operator.
____ Higher-level breaks are used.
____ A new statement is aligned with the beginning of the expression at the same level
as the previous line.
3.3 Comments
____ Comments are used to adequately explain what the class, interface, methods, and
blocks of code are doing.
3.4 Declarations
____ Variables are initialized where they are declared, unless dependent upon a
computation
____ Declarations appear at the beginning of blocks (A block is any code surrounded
by curly braces { and } ). The exception is a variable can be declared in a
for loop.
3.6 Miscellaneous
____ All if, while, do-while, try-catch, and for statements that have only one statement
to execute are surrounded by curly braces. Example:
Avoid this:
if ( condition )
3 Version 2.0
03/28/2008
NOAA National Weather Service/OHD
Science Infusion and Software Engineering Process Group (SISEPG) Java Programming Peer
Review Checklist
doThis();
Instead do this:
if ( condition )
{
doThis();
}
4. Reviewer's Comments:
4 Version 2.0
03/28/2008