checklist for code review for java programming language
- Proper Naming of variables, classes, methods, exceptions, unit / functional test methods.
- Use try-with resources wherever applicable.
- Log the error/exception message wherever applicable.
- Propagate exceptions, don't swallow them, unless it is taken care in being handled.
- As much as possible, try to avoid stale comments. Comments might be old and not reflect latest code. Cleanup unwanted comments
- Import statements are automatically organized by IDE. Ensure that, you don't mix up the ordering.
- Organize import statements by removing unused static imports or unused imports
- If there is a copyright comment, ensure that it is updated, to reflect latest year