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] Documentation is wrong for SingletonClassReturningNewInstance rule · Issue #3248 · pmd/pmd

[java] Documentation is wrong for SingletonClassReturningNewInstance rule #3248

New issue
Copy link
New issue
Copy link
Closed
#3257
Closed
[java] Documentation is wrong for SingletonClassReturningNewInstance rule#3248
#3257
Copy link
Labels
a:bugPMD crashes or fails to analyse a file.in:documentationAffects the documentation [doc]
Milestone
6.35.0

Description

@michaelboyles
michaelboyles
opened on May 4, 2021
Issue body actions

Affects PMD Version: 6.34.0

Description:

The documentation for the rule SingletonClassReturningNewInstance begins with "Some classes contain overloaded getInstance...".

This does not make sense in this context. It is an exact copy of the description from SingleMethodSingleton, so it appears to be a copy-paste issue.

Suggested description:

"A singleton class should only ever have one instance. Failure to check whether an instance has already been created may result in multiple instances"

Activity

  1. michaelboyles
    added
    a:bugPMD crashes or fails to analyse a file.
    on May 4, 2021
  2. oowekyala
    added
    in:documentationAffects the documentation [doc]
    on May 6, 2021
  3. oowekyala
    added this to the 6.35.0 milestone on May 6, 2021
  4. oowekyala
    added a commit that references this issue on May 6, 2021

    Fix pmd#3248 - doc of SingletonClassReturningNewInstance

    This issue will close once commit 6beefe5 is merged into the 'main' branch.
    6beefe5
  5. adangel
    closed this as completedin 6beefe5on May 8, 2021
  6. adangel
    closed this as completedin #3257on May 8, 2021
  7. adangel
    added a commit that references this issue on May 8, 2021

    Merge pull request #3257 from

    This issue will close once commit c757369 is merged into the 'main' branch.
    c757369
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:bugPMD crashes or fails to analyse a file.in:documentationAffects the documentation [doc]

    Type

    No type

    Projects

    No projects

      Milestone

      • 6.35.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.