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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top