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] MissingOverride: False negative for enum method · Issue #3542 · pmd/pmd Closed Labels a:false-negativePMD doesn't flag a problematic piece of codein:type-resolutionAffects the type resolution code Milestone DescriptionAffects PMD Version:6.39.0 Rule:MissingOverride Please provide the rule name and a link to the rule documentation: Description: Code Sample demonstrating the issue: public enum enumClazz { sub_EnumClazz { // missing @Override --> this is already reported public String toString() { return "test"; } // missing @Override --> this violation is missing public void notOverride() { System.out.println("test"); } }; // missing @Override --> this is already reported public String toString() { return "test"; } public void notOverride() { System.out.println("test"); } } Expected outcome: Two warnings PMD should report three violations at line 4, 8, and 14, but doesn't. Only 4 and 14 are reported. Line 8 is missing. This is a false-negative. Running PMD through: [Maven] Activity
MetadataMetadataAssigneesLabelsa:false-negativePMD doesn't flag a problematic piece of codein:type-resolutionAffects the type resolution code 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. |