You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Software Versions
SonarQube Version: 10.3
Plugin Version: plugin java 1.4.3
The text was updated successfully, but these errors were encountered:
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
Software Versions
The text was updated successfully, but these errors were encountered: