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] UnusedPrivateMethod: could not handle javax.annotation · Issue #6627 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: 7.23.0 Rule: UnusedPrivateMethod — https://docs.pmd-code.org/latest/pmd_rules_java_bestpractices.html#unusedprivatemethod Description:
Code Sample demonstrating the issue: // (false-positive) package demo.before; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; public class LifecycleBean { private String message = "initialized"; @PostConstruct private void setup() { // UnusedPrivateMethod reported here this.message = "post-construct done"; } @PreDestroy private void cleanup() { // UnusedPrivateMethod reported here this.message = "pre-destroy done"; } public String getMessage() { return message; } } Expected outcome: Private methods annotated with Actual outcome: PMD reports 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. |