我需要System.exit(0)在应用程序中使用.Eclipse安装了PMD插件并抱怨这行代码.添加@SuppressWarnings ("PMD.DoNotCallSystemExit")删除该警告,但现在我得到一个警告,这SuppressWarnings是不受支持的,尽管它的工作原理.
System.exit(0)
@SuppressWarnings ("PMD.DoNotCallSystemExit")
SuppressWarnings
有办法解决这个问题吗?
eclipse pmd suppress-warnings
eclipse ×1
pmd ×1
suppress-warnings ×1