Revert "Reject classes inheriting from themselves directly or transitively."

This reverts commit 498bb81f8725e2cf8f5ce1aa6b49ab5a9c5bb4c9.

Reverting not to break apps that do not follow the class
definition order rules.

Bug: 28797012
Bug: 28685551
Bug: 27682580
Change-Id: I2491b5aefe3ca8a364a05f7dfbc899c5a5757712
2 files changed