我需要在一个应用程序中使用System.exit(0)
,但Eclipse安装了PMD插件并抱怨这行代码。添加@SuppressWarnings ("PMD.DoNotCallSystemExit")
可以消除警告,但现在我收到了一条警告,说这个SuppressWarnings
不受支持,尽管它确实有效。
是否有解决方法?
我需要在一个应用程序中使用System.exit(0)
,但Eclipse安装了PMD插件并抱怨这行代码。添加@SuppressWarnings ("PMD.DoNotCallSystemExit")
可以消除警告,但现在我收到了一条警告,说这个SuppressWarnings
不受支持,尽管它确实有效。
是否有解决方法?
@SuppressWarnings("PMD")
注释,请查看菜单Java -> Compiler -> Errors/Warnings -> Annotations -> Unhandled Token in '@SuppressWarnings',并将其设置为忽略。