/javaCodeReviewCheckList

checklist for code review for java programming language

Checklist for Java code review

checklist for code review for java programming language

Naming

  1. Proper Naming of variables, classes, methods, exceptions, unit / functional test methods.

Exception Handling

  1. Use try-with resources wherever applicable.
  2. Log the error/exception message wherever applicable.
  3. Propagate exceptions, don't swallow them, unless it is taken care in being handled.

Comments

  1. As much as possible, try to avoid stale comments. Comments might be old and not reflect latest code. Cleanup unwanted comments

Import Statements

  1. Import statements are automatically organized by IDE. Ensure that, you don't mix up the ordering.
  2. Organize import statements by removing unused static imports or unused imports

Copyright

  1. If there is a copyright comment, ensure that it is updated, to reflect latest year