Skip to content

[core] net.sourceforge.pmd.cpd.SourceManager has public methods #5701

Closed

Description

@elharo

Minor cleanup of confusing code

Affects PMD Version:

3.12

Description:

SourceManager is package private but contains multiple public methods that do not override supertype methods. make them private or package private too.

e.g.

(This might make a good new rule too.)

Activity

  1. added
    a:bug
    on Apr 23, 2025
  2. UncleOwen commented on Aug 19, 2025

    @UncleOwen
    Member

    Is 3.12 a typo? That version is so old, I can't find it in git.

  3. elharo commented on Aug 19, 2025

    @elharo
    ContributorAuthor

    four months later, no idea. Possible I was thinking of the maven-pmd-plugin.

  4. elharo commented on Aug 19, 2025

    @elharo
    ContributorAuthor

    Regardless, a quick check shows that at HEAD today there are two public methods in this non-public class that do not override anything.

  5. added this to the 7.18.0 milestone on Sep 12, 2025
  6. modified the milestones: 7.18.0, 7.19.0 on Oct 27, 2025
  7. changed the title [-]net.sourceforge.pmd.cpd.SourceManager has public methods[/-] [+][core] net.sourceforge.pmd.cpd.SourceManager has public methods[/+] on Oct 30, 2025
  8. added a commit that references this issue on Nov 13, 2025
    7764d1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions