@SuppressWarnings suppression Warnings

Source: Internet
Author: User
Tags finally block

@SuppressWarnings ("XXXX") to suppress compile-time warning messages. The parameters are as follows:

Key words Use
All To suppress all warnings
Boxing To suppress warnings relative to boxing/unboxing operations
Cast To suppress warnings relative to cast operations
Dep-ann To suppress warnings relative to deprecated annotation
Deprecation To suppress warnings relative to deprecation
Fallthrough To suppress warnings relative to missing breaks in switch statements
Finally To suppress warnings relative-finally block that don ' t return
hiding To suppress warnings relative to locals that hide variable
Incomplete-switch To suppress warnings relative to missing entries in a switch statement (enum case)
Nls To suppress warnings relative to non-nls string literals
Null To suppress warnings relative to null analysis
Rawtypes To suppress warnings relative to un-specific types if using generics on class params
Restriction To suppress warnings relative to usage of discouraged or forbidden references
Serial To suppress warnings relative to missing serialversionuid field for a serializable class
Static-access o Suppress warnings relative to incorrect static access
Synthetic-access To suppress warnings relative to unoptimized access from inner classes
Unchecked To suppress warnings relative to unchecked operations
Unqualified-field-access To suppress warnings relative to field access unqualified
Unused To suppress warnings relative to unused code

@SuppressWarnings suppression Warnings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.