Suppress Warnings

@SuppressWarnings({"unchecked","fallthrough"})
  • unused: Warn when a method or variable is not used locally.
  • deprecation: Warn when using a deprecated class or method
  • unchecked: Warn when performing an unchecked conversion, such as when using a collection without using generics to specify the type that the collection holds
  • fallthrough: Warn when a switch block falls-through to the next case without a break
  • path: Warn when there's a non-existent path in a classpath, sourcepath, etc.
  • serial: Warn when there's a missing a serialVersionUID definitions on serializable classes.
  • finally: Warn about any finally clause that cannot complete normally
  • all: Warn about all of the above

From: some tutorial

suppress_warnings.txt · Last modified: 2008/12/04 10:24 by jobriath
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki