File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
utbot-go/src/main/kotlin/org/utbot/go/api Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,12 @@ class GoStructTypeId(
44
44
return packagePath == other.packagePath && packageName == other.packageName && name == other.name
45
45
}
46
46
47
- override fun hashCode (): Int = 31 * name.hashCode() + packagePath.hashCode()
47
+ override fun hashCode (): Int {
48
+ var result = packagePath.hashCode()
49
+ result = 31 * result + packageName.hashCode()
50
+ result = 31 * result + name.hashCode()
51
+ return result
52
+ }
48
53
}
49
54
50
55
class GoArrayTypeId (
@@ -87,10 +92,15 @@ class GoInterfaceTypeId(
87
92
88
93
override fun equals (other : Any? ): Boolean {
89
94
if (this == = other) return true
90
- if (other !is GoStructTypeId ) return false
95
+ if (other !is GoInterfaceTypeId ) return false
91
96
92
97
return packagePath == other.packagePath && packageName == other.packageName && name == other.name
93
98
}
94
99
95
- override fun hashCode (): Int = 31 * name.hashCode() + packagePath.hashCode()
100
+ override fun hashCode (): Int {
101
+ var result = packagePath.hashCode()
102
+ result = 31 * result + packageName.hashCode()
103
+ result = 31 * result + name.hashCode()
104
+ return result
105
+ }
96
106
}
You can’t perform that action at this time.
0 commit comments