Skip to content

Commit

Permalink
Fixed missing hashcode declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse committed May 5, 2021
1 parent 589cde4 commit 67aef18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/kotlin/dev/chainmail/taggy/pattern/VersionCode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ class VersionCode(
return compareTo(other) == 0
}

override fun hashCode(): Int {
var result = segments.hashCode()
result = 31 * result + (revision ?: 0)
return result
}

}

0 comments on commit 67aef18

Please sign in to comment.