Sonar Rules Conflict - squid:S2057 and squid:S4926

Hi Guys,

We have seen there are 2 sonar rules which are getting conflicted. squid:S2057 and squid:S4926

squid:S2057 - “Serializable” classes should have a “serialVersionUID”
squid:S4926 - serialVersionUID" should not be declared blindly - We need to remove in this rule.

Could you please let us know why there is a conflict between these 2 rules and how to resolve the issue.


Hi @SRK,

these 2 rules are not enabled in the default quality profile which means that it is up to you to enable the rules which suit your project.