tushartushar / DesigniteJava

Detects smells and computes metrics of Java code
https://www.designite-tools.com/products-dj
Apache License 2.0
173 stars 65 forks source link

Rebellious Hierarchy #26

Closed tushartushar closed 6 years ago

tushartushar commented 6 years ago

This smell arises when a subtype rejects the methods provided by its supertype(s).

Detection: For a class, check all the methods. If 1) a method is overridden, and 2) either the method is empty, or has only one statement which is a throw statement (throw exception), we detect this smell.