From bf049f88ce0e88eb41bb6bfe6a29469a7774e2d4 Mon Sep 17 00:00:00 2001 From: rjrjr Date: Wed, 25 Sep 2024 00:19:39 +0000 Subject: [PATCH] Apply changes from ktLintFormat Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../squareup/workflow1/StatefulWorkflow.kt | 53 ++++++++++++++++--- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/StatefulWorkflow.kt b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/StatefulWorkflow.kt index 769fc0895..2eb7d1b96 100644 --- a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/StatefulWorkflow.kt +++ b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/StatefulWorkflow.kt @@ -110,8 +110,7 @@ public abstract class StatefulWorkflow< name: String = "safeEventHandler", crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit = ::defaultOnFailedCast, - crossinline update: - // Type variance issue: https://github.com/square/workflow-kotlin/issues/891 + crossinline update: // Type variance issue: https://github.com/square/workflow-kotlin/issues/891 WorkflowAction<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.Updater.( currentState: CurrentStateT ) -> Unit @@ -218,7 +217,13 @@ public abstract class StatefulWorkflow< } public inline fun < - reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6 + reified CurrentStateT : StateT & Any, + E1, + E2, + E3, + E4, + E5, + E6 > safeEventHandler( name: String = "safeEventHandler", crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit = @@ -242,7 +247,14 @@ public abstract class StatefulWorkflow< } public inline fun < - reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6, E7 + reified CurrentStateT : StateT & Any, + E1, + E2, + E3, + E4, + E5, + E6, + E7 > safeEventHandler( name: String = "safeEventHandler", crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit = @@ -267,7 +279,15 @@ public abstract class StatefulWorkflow< } public inline fun < - reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6, E7, E8 + reified CurrentStateT : StateT & Any, + E1, + E2, + E3, + E4, + E5, + E6, + E7, + E8 > safeEventHandler( name: String = "safeEventHandler", crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit = @@ -295,7 +315,16 @@ public abstract class StatefulWorkflow< } public inline fun < - reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6, E7, E8, E9 + reified CurrentStateT : StateT & Any, + E1, + E2, + E3, + E4, + E5, + E6, + E7, + E8, + E9 > safeEventHandler( name: String = "safeEventHandler", crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit = @@ -324,7 +353,17 @@ public abstract class StatefulWorkflow< } public inline fun < - reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6, E7, E8, E9, E10 + reified CurrentStateT : StateT & Any, + E1, + E2, + E3, + E4, + E5, + E6, + E7, + E8, + E9, + E10 > safeEventHandler( name: String = "safeEventHandler", crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit =