From 56a81a50a04f9fe5d1ef7155a2ddf6c7a1ade3a4 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Fri, 2 Feb 2024 10:16:11 +0100 Subject: [PATCH] fix(model): Always construct `Hash` with lowercase `value` Lowercasing is not required for comparing expected serialized test results, because the serialization already takes care of the lowercasing. However, this change improves when comparing `Hash` instances via `equals()`. Signed-off-by: Frank Viernau --- model/src/main/kotlin/Hash.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/src/main/kotlin/Hash.kt b/model/src/main/kotlin/Hash.kt index 36ccbd0158670..f529067dc6a64 100644 --- a/model/src/main/kotlin/Hash.kt +++ b/model/src/main/kotlin/Hash.kt @@ -63,7 +63,7 @@ data class Hash( algorithm = HashAlgorithm.fromString(splitValue.first()) ) } else { - Hash(value, HashAlgorithm.create(value)) + Hash(value.lowercase(), HashAlgorithm.create(value)) } }