<分区>
免责声明:我不是在询问替代进口。虽然此信息可能有用,但请随时发表评论;但是任何包含类似使用另一个导入的答案都将被否决。 我问的是如何抑制警告。谢谢!
这是我使用的导入:
import com.sun.xml.ws.developer.JAXWSProperties;
Sonar 提示说:
Use classes from the Java API instead of Sun classes. (squid:S1191)
我怎样才能抑制这个警告?
<分区>
免责声明:我不是在询问替代进口。虽然此信息可能有用,但请随时发表评论;但是任何包含类似使用另一个导入的答案都将被否决。 我问的是如何抑制警告。谢谢!
这是我使用的导入:
import com.sun.xml.ws.developer.JAXWSProperties;
Sonar 提示说:
Use classes from the Java API instead of Sun classes. (squid:S1191)
我怎样才能抑制这个警告?
最佳答案
你能试试吗:
import com.sun.xml.ws.developer.JAXWSProperties; // NOSONAR
关于java - 抑制 Sonar 的导入警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53256886/
相关文章:
java - Apache Commons Imaging 的 Maven 依赖
sonarqube - Sonar Portfolio 不显示已配置的项目,消息 portfolio 没有项目,或者关联项目都没有代码行
eclipse - 不支持@SuppressWarnings ("PMD.DoNotCallSystemExit")
ruby-on-rails - 沉默弃用警告 Rspec Rails
java - Kotlin/JVM 或 Kotlin (Java) -- IntelliJ IDEA
javascript - 即使违反了质量门,SonarQube 也不会破坏 Jenkins 的构建
visual-studio - 你如何在 VS : "The type of schema applied to the document is not supported" 中抑制这个警告