Eclipse duplication annotation @SurpressWarnings for PMD
问题 I am trying to disable several arbitrary PMD warnings for my class. How can I list several PMD rules to be ignored? I was not able to find with Google. @SuppressWarnings("PMD.OnlyOneReturn") @SuppressWarnings("PMD.ShortVariable") public class MyClass { it gives Eclipse compile time error: Duplicate annotation @SurpressWarnings This is compilable but ignored @SuppressWarnings("PMD.OnlyOneReturn, PMD.ShortVariable") This @SuppressWarnings("PMD.OnlyOneReturn", "PMD.ShortVariable") result is