美文网首页
@SuppressWarnings注解所有参数

@SuppressWarnings注解所有参数

作者: 花落红窗 | 来源:发表于2022-04-02 16:52 被阅读0次
参数值 说明
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 to 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 when 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 to 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注解所有参数

    参数值说明allto suppress all warningsboxingto suppress warning...

  • @SuppressWarnings()注解参数大全

    @SuppressWarnings()注解参数大全 @SuppressWarnings() 的作用是告诉编译器对...

  • @SuppressWarnings注解

    @SuppressWarnings注解的作用 告诉编译器忽略指定的警告,不在编译完成后出现警告信息,这些警告信息显...

  • JavaWeb之Linux与Redis

    Web基础加强注解jdk注解回顾@Override@SuppressWarnings@Deprecated什么是注...

  • 注解和动态代理

    按照来源注解 java自带的注解 @override@SuppressWarnings@Deprecated 第三...

  • Spring之 自定义注解

    1. 注解分为两种 : 内置注解(jdk自带的注解) 和 自定义注解() @SuppressWarnings 在...

  • 注解1——@SuppressWarnings注解

    告诉编译器忽略指定的警告,不用在编译完成后出现警告信息。 使用: @SuppressWarnings("all")...

  • JDK5-注解

    注解是一个类,一个声明就是一个对象 简单注解 @SuppressWarnings("msg") - 压缩/抑制警告...

  • 如何自定义注解

    内置注解 (1)@SuppressWarnings 再程序前面加上可以在javac编译中去除警告--阶段是SO...

  • Springboot 自定义参数校验注解

    参数校验注解 首先从网上找的常用参数注解 自定义注解 依赖 用法 参数校验注解的启用,共有两种启用注解,添加之后参...

网友评论

      本文标题:@SuppressWarnings注解所有参数

      本文链接:https://www.haomeiwen.com/subject/vigtsrtx.html