GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [java] MissingStaticMethodInNonInstantiatableClass should consider Lombok's @NoArgsConstructor · Issue #4225 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version:6.51.0 Rule: MissingStaticMethodInNonInstantiatableClass Please provide the rule name and a link to the rule documentation: Description: Lombok Documentation: https://projectlombok.org/features/constructor Note: there are more annotations, like Code Sample demonstrating the issue: Original code: import lombok.NoArgsConstructor; @NoArgsConstructor public class C { private C(int a, int b, int c, String abc, long d, double p, String[] arr, int data, long in, float fl, String res) { } } Changed: public class C { private C(int a, int b, int c, String abc, long d, double p, String[] arr, int data, long in, float fl, String res) { } public C() { } } Expected outcome: PMD reports a violation at line 4, but that's wrong. That's a false positive. Running PMD through: CLI Activity
MetadataMetadataAssigneesLabelsa:false-positivePMD flags a piece of code that is not problematic TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |