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,

Hi Michael,

Thanks for your suggestion. This rule sounds reasonable for us.
I created a RSPEC
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,


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