Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top