Generate equals()/hashCode(): Fix hashCode() implementation
#KT-11638 Fixed
This commit is contained in:
@@ -22,8 +22,8 @@ class A(val n: IntArray, val s: Array<String>) {
|
||||
|
||||
override fun hashCode(): Int{
|
||||
var result = Arrays.hashCode(n)
|
||||
result += 31 * result + Arrays.hashCode(s)
|
||||
result += 31 * result + f.hashCode()
|
||||
result = 31 * result + Arrays.hashCode(s)
|
||||
result = 31 * result + f.hashCode()
|
||||
return result
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user