所有SuppressWarnings值? [英] all SuppressWarnings values?

查看:395
本文介绍了所有SuppressWarnings值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

会很棒。

如果这些值依赖于编译器,那么可以说是ant NetBeans的。不应该蚂蚁然后提供所有支持值的完整列表?

if these values are dependent on the compiler lets say ant in netbeans. shouldn't ant then provide a full list of all supported values?

推荐答案

这里; http://www.breakitdownblog .COM /支持值换suppresswarnings / 。注意这些是针对主Java库的;其他API可能有自己的。

Here; http://www.breakitdownblog.com/supported-values-for-suppresswarnings/. Note these are for main Java libraries; other APIs might have their own.



  • 所有以取消所有警告

  • 拳击以取消相对于装箱/拆箱操作的警告

  • 施放以取消相对于警告的警告投射操作

  • dep-ann 以取消相对于已弃用的注释的警告

  • 弃用禁止相对于弃用的警告

  • fallthrough 以取消相对于switch语句中缺少中断的警告

  • finally 禁止相对于不返回的finally块的警告

  • 隐藏以禁止相对于隐藏变量的本地人的警告

  • 不完整切换以取消相对于switch语句中缺少条目的警告(枚举案例)

  • nls 到su压制相对于非nls字符串文字的警告

  • null 以禁止相对于空分析的警告

  • rawtypes 在类别参数上使用泛型时禁止相对于非特定类型的警告

  • 限制以禁止相对于使用不鼓励或禁止引用的警告

  • 序列以取消相对于序列化类缺少serialVersionUID字段的警告

  • static-access 禁止相对于不正确的静态访问的警告

  • synthetic-access 以禁止相对于来自内部类的未优化访问的警告

  • 取消选中以取消与未经检查的操作相关的警告

  • unqualified-field-access 以禁止相对于字段访问不合格的警告

  • 未使用到s解压相对于未使用代码的警告

  • 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值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆