Every rule as at least one property, the property of severity.
The severity level of a rule determines how serious it is if the rule is not
adhered to. You can modify the severity level of a rule to enforce the rule
according to your needs.
To modify the severity of a rule:
- Click , expand Java,
select Code Review, and click OK.
The Code Review view opens.
- Click Window > Preferences. The Preferences
window opens, showing the Code Review page.
- In the left pane, expand Java, then select Code
Review.
- Select Complete Code Review and then click
the rule for which you want to modify the severity level.
- Click the Properties tab and, under Basic
properties, select Problem, Warning,
or Recommendation.
- Click OK.