This rule allows you to track the usage of the @SuppressWarnings mechanism.

Noncompliant Code Example

In case "listOfWarnings=unused" :

@SuppressWarnings("unused")

Compliant Solution

In case "listOfWarnings=all" (default value) :

@SuppressWarnings("unchecked")
@SuppressWarnings("unused")