Tag: 代码检查

IntelliJ IDEA @SuppressWarnings用于检查工具名称

我知道我可以抑制IntelliJ IDEA检查的警告: @SuppressWarnings(“CollectionDeclaredAsConcreteClass”) public PropertiesExpander(Properties properties) { this.properties.putAll(properties); } 对于来自外部的人,可能不清楚需要哪种工具进行抑制。 PMD使用前缀: @SuppressWarnings(“PMD.UnusedLocalVariable”) FindBugs使用专用注释: @SuppressFBWarnings(“NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR”) 有没有办法清楚地表明这种抑制只适用于IntelliJ IDEA?