SonarQube Java
  1. SonarQube Java
  2. SONARJAVA-117

Rule "Unused private method" should not log violation on method having the @PostConstruct and @PreDestroy annotations

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Exclusions, Rules
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The @PostConstruct and @PreDestroy annotations should be taken into account when checking for unused private methods.

      javax.annotation.PostConstruct;
      javax.annotation.PreDestroy;

        Issue Links

          Activity

          Hide
          Freddy Mallet added a comment -

          The rule specification must be updated to support a new exception

          Show
          Freddy Mallet added a comment - The rule specification must be updated to support a new exception

            People

            • Assignee:
              Freddy Mallet
              Reporter:
              François Dumont
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: