Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EC76] rule improvment : static list not so bad #5

Open
dedece35 opened this issue Jan 8, 2024 · 0 comments
Open

[EC76] rule improvment : static list not so bad #5

dedece35 opened this issue Jan 8, 2024 · 0 comments
Labels
🗃️ rule rule improvment or rule development or bug 🚀 enhancement New feature or request

Comments

@dedece35
Copy link
Member

dedece35 commented Jan 8, 2024

Describe the bug
EC76 rule wants us to avoid usage of static list in a class but as in use case below, list can be static or not because a singleton class is instanciated one time by spring context and destroyed when application is down. Thus static way or not, the list is really declared one time and the garbage collector doesn't have to clean it.
I think this rule have to be proved and measured to confirm its veracity.

Screenshots
ec76

Software Versions

  • SonarQube Version: 10.3
  • Plugin Version: plugin java 1.4.3
@dedece35 dedece35 added 🗃️ rule rule improvment or rule development or bug 🚀 enhancement New feature or request labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗃️ rule rule improvment or rule development or bug 🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant