From 5b48cdbad2493c7af9e79bb9996f195ace3123e5 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Mon, 6 May 2019 15:44:56 +0200 Subject: style: Format code according to Ktlint style guide This change formats the code according to the style guide of Ktlint. --- .../com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt | 6 ++++-- .../kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt | 9 +++++---- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'odcsim-testkit/src/main') diff --git a/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt b/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt index 5b6669bb..cb216614 100644 --- a/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt +++ b/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/BehaviorTestKitImpl.kt @@ -40,8 +40,10 @@ import kotlin.math.max * @param initialBehavior The initial behavior to initialize the actor of the test kit with. * @param path The path to the actor. */ -internal class BehaviorTestKitImpl(initialBehavior: Behavior, - path: ActorPath) : BehaviorTestKit { +internal class BehaviorTestKitImpl( + initialBehavior: Behavior, + path: ActorPath +) : BehaviorTestKit { /** * The [BehaviorInterpreter] used to interpret incoming messages. */ diff --git a/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt b/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt index 2f939eaa..35abd758 100644 --- a/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt +++ b/odcsim-testkit/src/main/kotlin/com/atlarge/odcsim/testkit/internal/TestInboxImpl.kt @@ -84,9 +84,11 @@ internal class TestInboxImpl(private val owner: BehaviorTestKitImpl<*>, * @property time The point in time to deliver the message. * @property message The message to wrap. */ - private inner class EnvelopeImpl(val id: Long, - override val time: Instant, - override val message: T) : Envelope { + private inner class EnvelopeImpl( + val id: Long, + override val time: Instant, + override val message: T + ) : Envelope { override fun compareTo(other: Envelope<*>): Int { val cmp = super.compareTo(other) return if (cmp == 0 && other is EnvelopeImpl) @@ -95,5 +97,4 @@ internal class TestInboxImpl(private val owner: BehaviorTestKitImpl<*>, cmp } } - } -- cgit v1.2.3