Unsupported @SuppressWarnings ("PMD.DoNotCallSystemExit")

I need to use System.exit(0) in the application. Eclipse has the PMD plugin installed and complains about this line of code. Adding @SuppressWarnings ("PMD.DoNotCallSystemExit") removes this warning, but now I get a warning that this SuppressWarnings not supported, even though it works.

Is there any way to solve this problem?

+43
eclipse suppress-warnings pmd
Feb 16 2018-11-11T00:
source share
1 answer

To prevent Eclipse from @SuppressWarnings("PMD") annotations, look under the Java → Compiler → Errors / Warnings → Annotations → Unhandled Token menu headings in '@SuppressWarnings' and set it to ignore.

Right on the PMD page.

Sorry for the wrong search.

+69
Feb 18 '11 at 10:50
source share



All Articles