The J2SE Best Practices code review consists of one category only; it is also called J2SE Best Practices.
The following table lists all of the categories and subcategories in the Quick code review, along with a description of the rules in each one. In the left column, categories are in bold text and subcategories are in plain text.
Category or subcategory | Description |
---|---|
J2SE Best Practices | Contains rules that validate code for compliance with J2SE best practices for Java™ development |
AWT | Contains rules that detect issues related to using the Abstract Window Toolkit library |
Casting | Contains rules that detect issues related to casting and coercion |
Cloneable | Contains rules that detect issues related to object cloning |
Comparison | Contains rules that detect issues related to comparing objects and testing object equality |
Conditional | Contains rules that detect issues related to the usage of conditionals |
Constructors | Contains rules that detect issues related to defining and implementing constructors |
Declaration | Contains rules that detect issues related to declaring constants, variables, and fields |
Exceptions | Contains rules that detect issues related to exception handling |
Initialization | Contains rules that detect issues related to the initialization of primitives and objects |
Null | Contains rules that detect issues related to using null |
Portability | Contains rules that detect issues related to portability |
Reflection | Contains rules that detect issues related to using reflection |
Serialization | Contains rules that detect issues related to serialization |
Statement | Contains rules that detect general issues in statements |
Switch | Contains rules that detect issues related to using switch statements |
Threads | Contains rules that detect issues related to using threads |
Avoid using negation in if/else conditions