@SuppressWarnings(value = "all")

参数解释
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
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(抑制确在switch中缺失breaks的警告)
finally to suppress warnings relative to finally block that don’t return (抑制finally模块没有返回的警告)
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)(忽略没有完整的switch语句)
nls to suppress warnings relative to non-nls string literals(忽略非nls格式的字符)
null to suppress warnings relative to null analysis(忽略对null的操作)
rawtypes to suppress warnings relative to un-specific types when using generics on class params(使用generics时忽略没有指定相应的类型)
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(忽略在serializable类中没有声明serialVersionUID变量)
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 (抑制没被使用过的代码的警告)

java抑制警告注解相关推荐

  1. java抑制警告快捷键_@SuppressWarning 抑制警告注解

    @SuppressWarning 抑制警告注解 Java.lang.SuppressWarnings 是 J2SE5.0中标准的Annotation 之一. 可以标注在类,字段,方法,参数,构造方法, ...

  2. Java忽略警告注解@SuppressWarnings

    // 忽略全部类型的警告 @SuppressWarnings("all") // 忽略未检查的转化,例如集合没有指定类型的警告 @SuppressWarnings("un ...

  3. java 安全警告_java忽略安全警告注解@SuppressWarnings

    java中注解用法详解--@SuppressWarnings 一.前言 注释类型: 当你的编码可能存在警告时,比如安全警告,可以用它来消除. api中是这样描述的: 指示应该在注释元素(以及包含在该注 ...

  4. java 清除警告的注解_忽略警告注解@SuppressWarnings详解

    简介:java.lang.SuppressWarnings是J2SE 5.0中标准的Annotation之一.可以标注在类.字段.方法.参数.构造方法,以及局部变量上. 作用:告诉编译器忽略指定的警告 ...

  5. 详解Java中的注解

    在Java中,注解(Annotation)引入始于Java5,用来描述Java代码的元信息,通常情况下注解不会直接影响代码的执行,尽管有些注解可以用来做到影响代码执行. 注解可以做什么 Java中的注 ...

  6. Java中的注解以及应用 @Deprecated @SupressWarning @Override

    Annotation注解在Java中有着很广泛的 ,他是做为一种标识 为javac所识别 ,.每一个注解 都对应这一个 Java类  在java.lang包中 有三个注解  分别是 Deprecate ...

  7. java最后一个注解@SuppressWarnings

    @SuppressWarnings注解 简介:java.lang.SuppressWarnings是J2SE5.0中标准的Annotation之一.可以标注在类.字段.方法.参数.构造方法,以及局部变 ...

  8. Java中的注解以及应用 @Deprecated @SupressWarning @Override

    Annotation注解在 Java 中有着很广泛的,他是做为一种标识 为javac所识别,.每一个注解 都对应这一个Java类  在java.lang包中 有三个注解  分别是 Deprecated ...

  9. 深入理解JAVA中的注解

    本文来说下JAVA中的注解,这个技术虽然我们每天都在使用,但是不一定知道其实现原理.本文来详细介绍下JAVA中注解相关的知识. 文章目录 概述 什么是注解 注解的本质是什么 注解体系图 常用元注解 @ ...

最新文章

  1. GOF对Builder模式的定义(转载)
  2. springboot配置文件加载位置
  3. cordova使用cordova-plugin-baidumaplocation插件获取定位
  4. 检查字符串是否包含数字
  5. qpaint 在graphicsview上的qimage画一条线_solidworks2016画一个塑料外壳:用开放的草图进行切除,你会吗?...
  6. 针对Linux ASP.NET MVC网站中 httpHandlers配置无效的解决方案
  7. Python读写ini文件的封装类
  8. 2018 CVPR GAN 相关论文
  9. 安装配置gitlab
  10. 用oracle的java存储过程实现BLOB字段的字符串读取
  11. rm: cannot remove ‘malloc.pro/.user.ini‘: Operation not permitted
  12. maven部署项目到tomcat8中
  13. 2021-08-08 mysql索引
  14. android 手机屏蔽广告 hosts
  15. 6 大神器在手,难怪是无敌的
  16. 实验室建立计量管理体系的重要性和意义
  17. 如何将python代码封装成app_python打包成可执行文件app
  18. 魅族手机CUP浮点运算测试BUG
  19. Nexus因异常重启导致OrientDB数据库变为只读的问题修复
  20. 移动战略,联想重拳后才能游刃有余

热门文章

  1. 最长对称子串(用各个字符确定对称轴进行判断)
  2. 10以内数的组成分解图_10以内数的组成与分解
  3. cisco 交换机 定期 自动 备份配置 -linux,Cisco交换机配置文件定时自动备份
  4. 群晖从windows迁移到esxi+直通踩坑历险记
  5. 《为爱而生》 | 第一集:遇见学姐
  6. APP的图标测试之震惊!双11快到了,你的app在偷偷更换图标?
  7. SaaS、PaaS、IaaS的区别
  8. Linux网络故障排查
  9. oracle导出1455,oracle 11g导出数据时报ORA 1455错误的处理方法
  10. Samung Galaxy III I535 黑砖救活经过