No public constructors for abstract classes

Error prone introduced a useful rule that is missing in sonarqube:

It does not make sense to declare a constructor public in an abstract class. We had lot of findings in our code base.

Kind regards,
Michael

Hi Michael,

Thanks for your suggestion. This rule sounds reasonable for us.
I created a RSPEC https://jira.sonarsource.com/browse/RSPEC-5993
You are welcome to check and say whether this is something you were talking about and share your thoughts about it.

Have a nice evening!

Kind regards,
Margarita

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.