Add inspection for equals which is called recursively within itself
So #KT-13702 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bd348911af
commit
b8fcdea673
@@ -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>
|
||||
Reference in New Issue
Block a user