Skip to content

Commit

Permalink
Merge pull request #3824 from CruGlobal/toolEqualityFix
Browse files Browse the repository at this point in the history
GT-2314 Fix Tool.equals() & Tool.hashCode()
  • Loading branch information
frett authored Dec 18, 2024
2 parents 4094345 + 448e4c2 commit ccea724
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/model/src/main/kotlin/org/cru/godtools/model/Tool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ class Tool(
isScreenShareDisabled != other.isScreenShareDisabled -> false
shares != other.shares -> false
pendingShares != other.pendingShares -> false
primaryLocale != other.primaryLocale -> false
parallelLocale != other.parallelLocale -> false
apiId != other.apiId -> false
metatoolCode != other.metatoolCode -> false
defaultVariantCode != other.defaultVariantCode -> false
Expand All @@ -234,6 +236,8 @@ class Tool(
result = 31 * result + isScreenShareDisabled.hashCode()
result = 31 * result + shares
result = 31 * result + pendingShares
result = 31 * result + (primaryLocale?.hashCode() ?: 0)
result = 31 * result + (parallelLocale?.hashCode() ?: 0)
result = 31 * result + (apiId?.hashCode() ?: 0)
result = 31 * result + (metatoolCode?.hashCode() ?: 0)
result = 31 * result + (defaultVariantCode?.hashCode() ?: 0)
Expand Down

0 comments on commit ccea724

Please sign in to comment.