Skip to content

Commit ccea724

Browse files
authored
Merge pull request #3824 from CruGlobal/toolEqualityFix
GT-2314 Fix Tool.equals() & Tool.hashCode()
2 parents 4094345 + 448e4c2 commit ccea724

File tree

1 file changed

+4
-0
lines changed
  • library/model/src/main/kotlin/org/cru/godtools/model

1 file changed

+4
-0
lines changed

library/model/src/main/kotlin/org/cru/godtools/model/Tool.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ class Tool(
209209
isScreenShareDisabled != other.isScreenShareDisabled -> false
210210
shares != other.shares -> false
211211
pendingShares != other.pendingShares -> false
212+
primaryLocale != other.primaryLocale -> false
213+
parallelLocale != other.parallelLocale -> false
212214
apiId != other.apiId -> false
213215
metatoolCode != other.metatoolCode -> false
214216
defaultVariantCode != other.defaultVariantCode -> false
@@ -234,6 +236,8 @@ class Tool(
234236
result = 31 * result + isScreenShareDisabled.hashCode()
235237
result = 31 * result + shares
236238
result = 31 * result + pendingShares
239+
result = 31 * result + (primaryLocale?.hashCode() ?: 0)
240+
result = 31 * result + (parallelLocale?.hashCode() ?: 0)
237241
result = 31 * result + (apiId?.hashCode() ?: 0)
238242
result = 31 * result + (metatoolCode?.hashCode() ?: 0)
239243
result = 31 * result + (defaultVariantCode?.hashCode() ?: 0)

0 commit comments

Comments
 (0)