PMD xpath to suppress AtLeastOneConstructor and UnusedPrivateField?
问题 I have this piece of code and PMD reports two rule violations: AbstractExceptionHandler has no constructor (AtLeastOneConstructor) And the field uriInfo is a unused private field (UnusedPrivateField) @NoArgsConstructor public class AbstractExceptionHandler { // PMD AtLeastOneConstructor warning here /** the uriInfo injection. */ @Getter @Context private UriInfo uriInfo; // PMD UnusedPrivateField warning here both warnings are okay, but we use annotations to generate code. So the warning is