You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- stableSealedClass: STABLE (class with no mutable properties)
77
79
- elevation: STABLE (marked @Stable or @Immutable)
78
80
- unstableUser: UNSTABLE (has mutable properties or unstable members)
79
81
@@ -126,22 +128,22 @@ public fun com.skydoves.myapplication.StableUserCard(user: com.skydoves.myapplic
126
128
skippable: true
127
129
restartable: true
128
130
params:
129
-
- user: STABLE
131
+
- user: STABLE (class with no mutable properties)
130
132
131
133
@Composable
132
134
public fun com.skydoves.myapplication.Test(stableUser2: com.skydoves.myapplication.models.StableUser): kotlin.Unit
133
135
skippable: true
134
136
restartable: true
135
137
params:
136
-
- stableUser2: STABLE
138
+
- stableUser2: STABLE (class with no mutable properties)
137
139
138
140
@Composable
139
141
public fun com.skydoves.myapplication.Test(myClass2: com.skydoves.myapplication.models.MyClass2, normalClass: com.skydoves.myapplication.models.NormalClass, immutableList: kotlinx.collections.immutable.ImmutableList<kotlin.String>): kotlin.Unit
140
142
skippable: false
141
143
restartable: true
142
144
params:
143
145
- myClass2: UNSTABLE (has mutable properties or unstable members)
144
-
- normalClass: STABLE
146
+
- normalClass: STABLE (class with no mutable properties)
145
147
- immutableList: STABLE (known stable type)
146
148
147
149
@Composable
@@ -161,10 +163,10 @@ public fun com.skydoves.myapplication.Test2(myClass2: kotlin.collections.List<ko
161
163
162
164
@Composable
163
165
public fun com.skydoves.myapplication.Test3(myClass2: java.lang.StringBuilder): kotlin.Unit
164
-
skippable: true
166
+
skippable: false
165
167
restartable: true
166
168
params:
167
-
- myClass2: STABLE
169
+
- myClass2: UNSTABLE (mutable Java class)
168
170
169
171
@Composable
170
172
public fun com.skydoves.myapplication.Test4(count: androidx.lifecycle.ViewModel): kotlin.Unit
@@ -217,7 +219,7 @@ public fun com.skydoves.myapplication.TrackedMixedParameters(title: kotlin.Strin
217
219
params:
218
220
- title: STABLE (String is immutable)
219
221
- count: STABLE (primitive type)
220
-
- user: STABLE
222
+
- user: STABLE (class with no mutable properties)
221
223
222
224
@Composable
223
225
public fun com.skydoves.myapplication.TrackedUnstableUserCard(user: com.skydoves.myapplication.models.UnstableUser): kotlin.Unit
@@ -231,7 +233,7 @@ public fun com.skydoves.myapplication.TrackedUserProfile(user: com.skydoves.myap
231
233
skippable: true
232
234
restartable: true
233
235
params:
234
-
- user: STABLE
236
+
- user: STABLE (class with no mutable properties)
235
237
236
238
@Composable
237
239
public fun com.skydoves.myapplication.UnstableUserCard(user: com.skydoves.myapplication.models.UnstableUser): kotlin.Unit
Copy file name to clipboardExpand all lines: compose-stability-analyzer-idea/src/main/kotlin/com/skydoves/compose/stability/idea/k2/KtStabilityInferencer.kt
+44-5Lines changed: 44 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -368,14 +368,28 @@ internal class KtStabilityInferencer {
Copy file name to clipboardExpand all lines: stability-compiler/src/main/kotlin/com/skydoves/compose/stability/compiler/lower/StabilityAnalyzerTransformer.kt
+33-5Lines changed: 33 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -395,20 +395,25 @@ public class StabilityAnalyzerTransformer(
0 commit comments