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 62e0a4a commit 912124dCopy full SHA for 912124d
core/common/src/format/LocalDateFormat.kt
@@ -280,8 +280,8 @@ internal class IncompleteLocalDate(
280
dayOfMonth == other.dayOfMonth && isoDayOfWeek == other.isoDayOfWeek && dayOfYear == other.dayOfYear
281
282
override fun hashCode(): Int =
283
- year.hashCode() * 31 + monthNumber.hashCode() * 31 + dayOfMonth.hashCode() * 31 + isoDayOfWeek.hashCode() * 31 +
284
- dayOfYear.hashCode() * 31
+ year.hashCode() + monthNumber.hashCode() + dayOfMonth.hashCode() + isoDayOfWeek.hashCode() +
+ dayOfYear.hashCode()
285
286
override fun toString(): String =
287
"${year ?: "??"}-${monthNumber ?: "??"}-${dayOfMonth ?: "??"} (day of week is ${isoDayOfWeek ?: "??"})"
0 commit comments