From ef06e946ab6e0115099542980a89fb303a5a9455 Mon Sep 17 00:00:00 2001 From: Kizito Nwose Date: Sat, 15 Jun 2024 21:58:22 +0200 Subject: [PATCH] Annotate data classes. --- .../main/java/com/kizitonwose/calendar/compose/CalendarInfo.kt | 2 ++ .../java/com/kizitonwose/calendar/compose/VisibleItemState.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/compose/src/main/java/com/kizitonwose/calendar/compose/CalendarInfo.kt b/compose/src/main/java/com/kizitonwose/calendar/compose/CalendarInfo.kt index 115a019e..f0437dac 100644 --- a/compose/src/main/java/com/kizitonwose/calendar/compose/CalendarInfo.kt +++ b/compose/src/main/java/com/kizitonwose/calendar/compose/CalendarInfo.kt @@ -1,8 +1,10 @@ package com.kizitonwose.calendar.compose +import androidx.compose.runtime.Immutable import com.kizitonwose.calendar.core.OutDateStyle import java.time.DayOfWeek +@Immutable internal data class CalendarInfo( val indexCount: Int, private val firstDayOfWeek: DayOfWeek? = null, diff --git a/compose/src/main/java/com/kizitonwose/calendar/compose/VisibleItemState.kt b/compose/src/main/java/com/kizitonwose/calendar/compose/VisibleItemState.kt index 45a0605c..a20c28f5 100644 --- a/compose/src/main/java/com/kizitonwose/calendar/compose/VisibleItemState.kt +++ b/compose/src/main/java/com/kizitonwose/calendar/compose/VisibleItemState.kt @@ -1,7 +1,9 @@ package com.kizitonwose.calendar.compose +import androidx.compose.runtime.Immutable import java.io.Serializable +@Immutable internal class VisibleItemState( val firstVisibleItemIndex: Int = 0, val firstVisibleItemScrollOffset: Int = 0,