GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [java] UnnecessaryConstructor: False positive for JavaDoc-bearing constructor · Issue #6284 · pmd/pmd

[java] UnnecessaryConstructor: False positive for JavaDoc-bearing constructor #6284

New issue
Copy link
New issue
Copy link
Closed
#6311
Closed
[java] UnnecessaryConstructor: False positive for JavaDoc-bearing constructor#6284
#6311
Copy link
Labels
a:false-positivePMD flags a piece of code that is not problematic
Milestone
7.20.0

Description

@Vampire
Vampire
opened on Nov 28, 2025
Issue body actions

Affects PMD Version: 7.18.0

Rule: UnnecessaryConstructor

Description:

An empty public no-arg constructor that bears JavaDoc is not unnecessary.
Without it, the JavaDoc tool renders the auto-generated default constructor to the docs, without any description.
Newer JavaDoc tool versions even give a doclint warning about it, that by IntelliJ is even displayed as error.

Expected outcome:

PMD reports a violation but that's wrong. That's a false positive.

Running PMD through: Gradle

Activity

  1. Vampire
    added
    a:false-positivePMD flags a piece of code that is not problematic
    on Nov 28, 2025
  2. adangel
    changed the title [-][java] `UnnecessaryConstructor` reporting false-positive on JavaDoc-bearing constructor[/-] [+][java] UnnecessaryConstructor: False positive for JavaDoc-bearing constructor[/+] on Dec 22, 2025
  3. adangel
    added this to the 7.20.0 milestone on Dec 22, 2025
  4. adangel
    closed this as completedin 9193b21on Dec 22, 2025
  5. adangel
    added a commit that references this issue on Dec 22, 2025

    [java] Fix pmd#6284: UnnecessaryConstructor reporting false-positive …

    This issue will close once commit 9193b21 is merged into the 'main' branch.
    9193b21
  6. wener-tiobe
    added a commit that references this issue on Feb 10, 2026

    RM-37163: CPD 7.21.0 upgrade (#8)

    6a1959a
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:false-positivePMD flags a piece of code that is not problematic

    Type

    No type

    Projects

    No projects

      Milestone

      • 7.20.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue 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.