Question

Is there a checkstyle rule that forbids the usage of the super keyword in Java? I searched on Google, but couldn't find anything. Is there an unofficial place to get such specific checkstyle rules?

Était-ce utile?

La solution

Checkstyle has a "RegEx" rule, which can check for lots of different things (we use it to find TODO comments).

By why would you make a rule that essentially prevents you from doing any kind polymorphism?

I'm pretty sure that the train of thought that led you to believe that you need this rule is seriously flawed.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top