Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
new Check: EmptyPublicCtorInFinalClassCheck #186
following code is happen :
nobody extend this class, this class does not extend anything - its c-tor is completely useless, especially "super()";
Checkstyle idea - EmptyPublicCtorInFinalClass,
base on investigation why empty ctor could be necessary - http://stackoverflow.com/questions/3507281/java-inheritance-problem-have-to-create-empty-constructor-in-father-class,
we can not completely cover code case that described above, as Checkstyle does not have information about other classes (nobody can predict who can extend from MyClass).
What we can be sure is final class can not be extended - so we could catch that cases.