mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Sugar for the Fingerprint
This commit is contained in:
parent
4488f37394
commit
13dc66f8e3
1 changed files with 1 additions and 8 deletions
|
@ -13,14 +13,7 @@ class Fingerprint(fingerprint: String) {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
if (other == null) {
|
return other?.toString() == toString()
|
||||||
return false
|
|
||||||
}
|
|
||||||
return if (other is Fingerprint) {
|
|
||||||
toString() == other.toString()
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hashCode(): Int {
|
override fun hashCode(): Int {
|
||||||
|
|
Loading…
Reference in a new issue