Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by PaulFremantle: http://wiki.apache.org/ws/FrontPage/Axis2/CodeQuality ------------------------------------------------------------------------------ - Clear JavaDoc comments for each method and class - Interfaces in particular should have clear comments for each method - If you can't explain the class or method, maybe you need to refactor - * No warnings or errors in Eclipse/IDEA + * No warnings or errors in Eclipse/IDEA - There should be no import package.* - There should be no imports that aren't used - There should be no unused local variables - Serializable classes need serialVersionUIDs - Or better still remove java.io.Serializable unless we are actually using it - Don't use static methods on instances (use the class not the object) - * Don't use long lines (e.g. greater than 70 characters) + * Don't use long lines (e.g. greater than 70 characters) - * Aim to initialize variables where they are defined + * Aim to initialize variables where they are defined - * Use curly braces on if, while statements + * Use curly braces on if, while statements - - dont use the shortcut if (something) a; else b; + - dont use the shortcut if (something) a; else b; - * If the name of an class or method isn't clear rename it + * If the name of an class or method isn't clear rename it - - if in doubt ask one or two other people + - if in doubt ask one or two other people - * Always comment decisions you made or didn't make + * Always comment decisions you made or didn't make - - If you chose one of two options explain why + - If you chose one of two options explain why - - If you failed to do something add a comment {{{// TODO}}} or {{{// FIXME}}} to let other committers know + - If you failed to do something add a comment {{{// TODO}}} or {{{// FIXME}}} to let other committers know - - +