Slackbot
10/17/2022, 5:02 PMChris Lee
10/17/2022, 5:06 PMChris Lee
10/17/2022, 5:07 PMpublic class CodeArtifactToken(public val url: String, public val value: String) : Serializable {
/*
* Only compare on URL to prevent ValueSource from dirtying configuration cache when token value changes
*/
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as CodeArtifactToken
if (url != other.url) return false
return true
}
/*
* Only use URL to prevent ValueSource from dirtying configuration cache when token value changes
*/
override fun hashCode(): Int {
return url.hashCode()
}
}Egor Andreevici
10/18/2022, 6:58 AM