Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Now link to JLS sections on line

...

According to the Java API [API 2006], Annotation Type SuppressWarnings documentation

As a matter of style, programmers should always use this annotation on the most deeply nested element where it is effective. If you want to suppress a warning in a particular method, you should annotate that method rather than its class.

...