We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e01caa8 commit 63fecf2Copy full SHA for 63fecf2
core/common/src/format/LocalDateFormat.kt
@@ -279,8 +279,10 @@ internal class IncompleteLocalDate(
279
other is IncompleteLocalDate && year == other.year && monthNumber == other.monthNumber &&
280
dayOfMonth == other.dayOfMonth && isoDayOfWeek == other.isoDayOfWeek && dayOfYear == other.dayOfYear
281
282
- override fun hashCode(): Int =
283
- year.hashCode() + monthNumber.hashCode() + dayOfMonth.hashCode() + isoDayOfWeek.hashCode() +
+ override fun hashCode(): Int = year.hashCode() * 923521 +
+ monthNumber.hashCode() * 29791 +
284
+ dayOfMonth.hashCode() * 961 +
285
+ isoDayOfWeek.hashCode() * 31 +
286
dayOfYear.hashCode()
287
288
override fun toString(): String =
0 commit comments