PMD defines the rule CallSuperInConstructor. What is the purpose of adding a no-argument call to super()
in the constructor when it is not required by the compiler?
I realize I could disable the rule or use @SuppressWarnings
to silence the rule in each class.
This question deals with why one should call super(...)
in a constructor. My question is about why one would add a no-argument super()
call when the compiler does not require it.