Add inspection for equals which is called recursively within itself

So #KT-13702 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-11-09 17:24:30 +03:00
committed by Mikhail Glukhikh
parent bd348911af
commit b8fcdea673
7 changed files with 132 additions and 0 deletions
@@ -0,0 +1,20 @@
<html>
<body>
Reports recursive equals calls.
<p>
For example:
<code>
<pre>
class X {
override fun equals(other: Any?): Boolean {
if (this == other) return true // recursive equals call
return false
}
}
</pre>
</code>
</p>
</body>
</html>