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.
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.