diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..94417eb4e3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[**.{kt,kts,properties}] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 diff --git a/benchmarks/src/jmh/kotlin/benchmarks/SequentialSemaphoreBenchmark.kt b/benchmarks/src/jmh/kotlin/benchmarks/SequentialSemaphoreBenchmark.kt index ed1a4ed89a..08db49ea2b 100644 --- a/benchmarks/src/jmh/kotlin/benchmarks/SequentialSemaphoreBenchmark.kt +++ b/benchmarks/src/jmh/kotlin/benchmarks/SequentialSemaphoreBenchmark.kt @@ -36,4 +36,4 @@ open class SequentialSemaphoreAsMutexBenchmark { fun main() = SequentialSemaphoreAsMutexBenchmark().benchmark() -private val N = 1_000_000 \ No newline at end of file +private val N = 1_000_000 diff --git a/kotlinx-coroutines-core/common/src/internal/NamedDispatcher.kt b/kotlinx-coroutines-core/common/src/internal/NamedDispatcher.kt index 72dbd65380..5509b15ab3 100644 --- a/kotlinx-coroutines-core/common/src/internal/NamedDispatcher.kt +++ b/kotlinx-coroutines-core/common/src/internal/NamedDispatcher.kt @@ -22,4 +22,4 @@ internal class NamedDispatcher( override fun toString(): String { return name } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/CancellableContinuationTest.kt b/kotlinx-coroutines-core/common/test/CancellableContinuationTest.kt index 83b036421f..b2abdc1ca8 100644 --- a/kotlinx-coroutines-core/common/test/CancellableContinuationTest.kt +++ b/kotlinx-coroutines-core/common/test/CancellableContinuationTest.kt @@ -145,4 +145,4 @@ class CancellableContinuationTest : TestBase() { } assertEquals(1, i) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/DispatchedContinuationTest.kt b/kotlinx-coroutines-core/common/test/DispatchedContinuationTest.kt index 2035ef5bab..51ba4e610b 100644 --- a/kotlinx-coroutines-core/common/test/DispatchedContinuationTest.kt +++ b/kotlinx-coroutines-core/common/test/DispatchedContinuationTest.kt @@ -72,4 +72,4 @@ class DispatchedContinuationTest : TestBase() { yield() // to the launched job finish(8) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/FailedJobTest.kt b/kotlinx-coroutines-core/common/test/FailedJobTest.kt index 504434f152..9d82e667da 100644 --- a/kotlinx-coroutines-core/common/test/FailedJobTest.kt +++ b/kotlinx-coroutines-core/common/test/FailedJobTest.kt @@ -54,4 +54,4 @@ class FailedJobTest : TestBase() { assertTrue(!job.isActive) assertTrue(job.isCancelled) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/ImmediateYieldTest.kt b/kotlinx-coroutines-core/common/test/ImmediateYieldTest.kt index c2c21489cf..37f8943bef 100644 --- a/kotlinx-coroutines-core/common/test/ImmediateYieldTest.kt +++ b/kotlinx-coroutines-core/common/test/ImmediateYieldTest.kt @@ -51,4 +51,4 @@ class ImmediateYieldTest : TestBase() { } finish(2) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/UnconfinedCancellationTest.kt b/kotlinx-coroutines-core/common/test/UnconfinedCancellationTest.kt index 59845d841b..754ad4c58a 100644 --- a/kotlinx-coroutines-core/common/test/UnconfinedCancellationTest.kt +++ b/kotlinx-coroutines-core/common/test/UnconfinedCancellationTest.kt @@ -96,4 +96,4 @@ class UnconfinedCancellationTest : TestBase() { }.join() finish(2) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/operators/AsFlowTest.kt b/kotlinx-coroutines-core/common/test/flow/operators/AsFlowTest.kt index e38e9cba0b..65ad35e5ff 100644 --- a/kotlinx-coroutines-core/common/test/flow/operators/AsFlowTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/operators/AsFlowTest.kt @@ -31,4 +31,4 @@ class AsFlowTest : TestBase() { assertIsNot>(flow) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/operators/BufferConflationTest.kt b/kotlinx-coroutines-core/common/test/flow/operators/BufferConflationTest.kt index 789a7132a2..bc146a9006 100644 --- a/kotlinx-coroutines-core/common/test/flow/operators/BufferConflationTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/operators/BufferConflationTest.kt @@ -140,4 +140,4 @@ class BufferConflationTest : TestBase() { buffer(8, onBufferOverflow = BufferOverflow.DROP_LATEST) .buffer(3, BufferOverflow.DROP_OLDEST) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/operators/ConflateTest.kt b/kotlinx-coroutines-core/common/test/flow/operators/ConflateTest.kt index 7b3878c10b..4be67d3100 100644 --- a/kotlinx-coroutines-core/common/test/flow/operators/ConflateTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/operators/ConflateTest.kt @@ -20,4 +20,4 @@ class ConflateTest : TestBase() { assertEquals(listOf(1, 10, 20, 30), result) finish(2) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/operators/TransformTest.kt b/kotlinx-coroutines-core/common/test/flow/operators/TransformTest.kt index b70460a052..fea3cb7fa8 100644 --- a/kotlinx-coroutines-core/common/test/flow/operators/TransformTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/operators/TransformTest.kt @@ -14,4 +14,4 @@ class TransformTest : TestBase() { } assertEquals(listOf(1, 1, 2, 2, 3, 3), flow.toList()) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/operators/TransformWhileTest.kt b/kotlinx-coroutines-core/common/test/flow/operators/TransformWhileTest.kt index 4da0d26ab8..1e1c8ba4fa 100644 --- a/kotlinx-coroutines-core/common/test/flow/operators/TransformWhileTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/operators/TransformWhileTest.kt @@ -64,4 +64,4 @@ class TransformWhileTest : TestBase() { private data class DownloadProgress(val percent: Int) { fun isDone() = percent >= 100 } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/sharing/ShareInBufferTest.kt b/kotlinx-coroutines-core/common/test/flow/sharing/ShareInBufferTest.kt index 8871e31816..4efd1b0c6e 100644 --- a/kotlinx-coroutines-core/common/test/flow/sharing/ShareInBufferTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/sharing/ShareInBufferTest.kt @@ -92,4 +92,4 @@ class ShareInBufferTest : TestBase() { checkBuffer(41) { buffer(10).buffer(20).shareIn(it, SharingStarted.Eagerly, 11) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/sharing/SharedFlowScenarioTest.kt b/kotlinx-coroutines-core/common/test/flow/sharing/SharedFlowScenarioTest.kt index f4417e109a..9fb521c75f 100644 --- a/kotlinx-coroutines-core/common/test/flow/sharing/SharedFlowScenarioTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/sharing/SharedFlowScenarioTest.kt @@ -401,4 +401,4 @@ class SharedFlowScenarioTest : TestBase() { println("--- That's it ---") } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/sharing/SharingStartedTest.kt b/kotlinx-coroutines-core/common/test/flow/sharing/SharingStartedTest.kt index 09450a1c50..9c72d5718d 100644 --- a/kotlinx-coroutines-core/common/test/flow/sharing/SharingStartedTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/sharing/SharingStartedTest.kt @@ -177,4 +177,4 @@ class SharingStartedTest : TestBase() { scope.cancel() } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/terminal/CollectLatestTest.kt b/kotlinx-coroutines-core/common/test/flow/terminal/CollectLatestTest.kt index 2cecf8c43f..fd40fd2000 100644 --- a/kotlinx-coroutines-core/common/test/flow/terminal/CollectLatestTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/terminal/CollectLatestTest.kt @@ -50,4 +50,4 @@ class CollectLatestTest : TestBase() { } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/flow/terminal/FirstTest.kt b/kotlinx-coroutines-core/common/test/flow/terminal/FirstTest.kt index cdb36bd8f8..14318fb5cc 100644 --- a/kotlinx-coroutines-core/common/test/flow/terminal/FirstTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/terminal/FirstTest.kt @@ -192,4 +192,4 @@ class FirstTest : TestBase() { expect(1) job.cancel() } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/selects/SelectBiasTest.kt b/kotlinx-coroutines-core/common/test/selects/SelectBiasTest.kt index 42cdf94552..8d974b91e9 100644 --- a/kotlinx-coroutines-core/common/test/selects/SelectBiasTest.kt +++ b/kotlinx-coroutines-core/common/test/selects/SelectBiasTest.kt @@ -38,4 +38,4 @@ class SelectBiasTest : TestBase() { assertTrue(counter[0] >= n / 4) assertTrue(counter[1] >= n / 4) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/selects/SelectJobTest.kt b/kotlinx-coroutines-core/common/test/selects/SelectJobTest.kt index 6af517c0d8..ce2a101bea 100644 --- a/kotlinx-coroutines-core/common/test/selects/SelectJobTest.kt +++ b/kotlinx-coroutines-core/common/test/selects/SelectJobTest.kt @@ -61,4 +61,4 @@ class SelectJobTest : TestBase() { finish(4) assertEquals("OK", res) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/selects/SelectMutexTest.kt b/kotlinx-coroutines-core/common/test/selects/SelectMutexTest.kt index be8cd3fca4..aa8a446af2 100644 --- a/kotlinx-coroutines-core/common/test/selects/SelectMutexTest.kt +++ b/kotlinx-coroutines-core/common/test/selects/SelectMutexTest.kt @@ -51,4 +51,4 @@ class SelectMutexTest : TestBase() { yield() // to the resumed select finish(8) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/common/test/selects/SelectUnlimitedChannelTest.kt b/kotlinx-coroutines-core/common/test/selects/SelectUnlimitedChannelTest.kt index e460bd707c..e0f2415e09 100644 --- a/kotlinx-coroutines-core/common/test/selects/SelectUnlimitedChannelTest.kt +++ b/kotlinx-coroutines-core/common/test/selects/SelectUnlimitedChannelTest.kt @@ -23,4 +23,4 @@ class SelectUnlimitedChannelTest : TestBase() { } finish(3) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jsAndWasmShared/src/internal/ThreadLocal.kt b/kotlinx-coroutines-core/jsAndWasmShared/src/internal/ThreadLocal.kt index 94eecfa0ee..7c35fa655e 100644 --- a/kotlinx-coroutines-core/jsAndWasmShared/src/internal/ThreadLocal.kt +++ b/kotlinx-coroutines-core/jsAndWasmShared/src/internal/ThreadLocal.kt @@ -7,4 +7,4 @@ internal actual class CommonThreadLocal { actual fun set(value: T) { this.value = value } } -internal actual fun commonThreadLocal(name: Symbol): CommonThreadLocal = CommonThreadLocal() \ No newline at end of file +internal actual fun commonThreadLocal(name: Symbol): CommonThreadLocal = CommonThreadLocal() diff --git a/kotlinx-coroutines-core/jvm/test/AwaitJvmTest.kt b/kotlinx-coroutines-core/jvm/test/AwaitJvmTest.kt index 149d026bf6..16b2ffa012 100644 --- a/kotlinx-coroutines-core/jvm/test/AwaitJvmTest.kt +++ b/kotlinx-coroutines-core/jvm/test/AwaitJvmTest.kt @@ -21,4 +21,4 @@ class AwaitJvmTest : TestBase() { } finish(iterations + 1) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/CoroutineScopeTestJvm.kt b/kotlinx-coroutines-core/jvm/test/CoroutineScopeTestJvm.kt index 6e3995147c..11369dfbe3 100644 --- a/kotlinx-coroutines-core/jvm/test/CoroutineScopeTestJvm.kt +++ b/kotlinx-coroutines-core/jvm/test/CoroutineScopeTestJvm.kt @@ -71,4 +71,4 @@ class MyMutableContextElement( keyId, "Merged '$value' and '${(overwritingElement as MyMutableContextElement).value}'" ) -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/CoroutinesJvmTest.kt b/kotlinx-coroutines-core/jvm/test/CoroutinesJvmTest.kt index 416226cb9f..f2b14c604f 100644 --- a/kotlinx-coroutines-core/jvm/test/CoroutinesJvmTest.kt +++ b/kotlinx-coroutines-core/jvm/test/CoroutinesJvmTest.kt @@ -33,4 +33,4 @@ class CoroutinesJvmTest : TestBase() { } private fun throwTestException(): Unit = throw TestException() -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/DebugThreadNameTest.kt b/kotlinx-coroutines-core/jvm/test/DebugThreadNameTest.kt index 4505f39dca..3a1207f7b1 100644 --- a/kotlinx-coroutines-core/jvm/test/DebugThreadNameTest.kt +++ b/kotlinx-coroutines-core/jvm/test/DebugThreadNameTest.kt @@ -67,4 +67,4 @@ class DebugThreadNameTest : TestBase() { assertEquals(2, split.size, "Thread name '$name' is expected to contain one coroutine name") assertEquals(expected, split[1], "Thread name '$name' is expected to end with coroutine name '$expected'") } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/DelayJvmTest.kt b/kotlinx-coroutines-core/jvm/test/DelayJvmTest.kt index 710f773f44..1d7424e8ed 100644 --- a/kotlinx-coroutines-core/jvm/test/DelayJvmTest.kt +++ b/kotlinx-coroutines-core/jvm/test/DelayJvmTest.kt @@ -65,4 +65,4 @@ class DelayJvmTest : TestBase() { pool.execute { cont.resumeWith(result) } } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/DispatchersToStringTest.kt b/kotlinx-coroutines-core/jvm/test/DispatchersToStringTest.kt index 32573ca1f6..482976fc38 100644 --- a/kotlinx-coroutines-core/jvm/test/DispatchersToStringTest.kt +++ b/kotlinx-coroutines-core/jvm/test/DispatchersToStringTest.kt @@ -53,4 +53,4 @@ class DispatchersToStringTest { assertEquals("Named", named.toString()) } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/EventLoopsTest.kt b/kotlinx-coroutines-core/jvm/test/EventLoopsTest.kt index 9c764a0c97..937c3e387b 100644 --- a/kotlinx-coroutines-core/jvm/test/EventLoopsTest.kt +++ b/kotlinx-coroutines-core/jvm/test/EventLoopsTest.kt @@ -122,4 +122,4 @@ class EventLoopsTest : TestBase() { waitingThread.value = null } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/IODispatcherTest.kt b/kotlinx-coroutines-core/jvm/test/IODispatcherTest.kt index db81f12c79..492261d8a2 100644 --- a/kotlinx-coroutines-core/jvm/test/IODispatcherTest.kt +++ b/kotlinx-coroutines-core/jvm/test/IODispatcherTest.kt @@ -19,4 +19,4 @@ class IODispatcherTest : TestBase() { assertSame(mainThread, Thread.currentThread()) finish(4) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/JobDisposeStressTest.kt b/kotlinx-coroutines-core/jvm/test/JobDisposeStressTest.kt index 22b5d5992c..0abddd0038 100644 --- a/kotlinx-coroutines-core/jvm/test/JobDisposeStressTest.kt +++ b/kotlinx-coroutines-core/jvm/test/JobDisposeStressTest.kt @@ -74,4 +74,4 @@ class JobDisposeStressTest: TestBase() { @Suppress("DEPRECATION_ERROR") private class TestJob : JobSupport(active = true) -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/JobStressTest.kt b/kotlinx-coroutines-core/jvm/test/JobStressTest.kt index cb0274e8c0..9db7765bca 100644 --- a/kotlinx-coroutines-core/jvm/test/JobStressTest.kt +++ b/kotlinx-coroutines-core/jvm/test/JobStressTest.kt @@ -11,4 +11,4 @@ class JobStressTest : TestBase() { var fireCount = 0 for (i in 0 until n) job.invokeOnCompletion { fireCount++ }.dispose() } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/TestBaseTest.kt b/kotlinx-coroutines-core/jvm/test/TestBaseTest.kt index 49b26ab794..4df74191b0 100644 --- a/kotlinx-coroutines-core/jvm/test/TestBaseTest.kt +++ b/kotlinx-coroutines-core/jvm/test/TestBaseTest.kt @@ -21,4 +21,4 @@ class TestBaseTest : TestBase() { } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/WithDefaultContextTest.kt b/kotlinx-coroutines-core/jvm/test/WithDefaultContextTest.kt index 44b31275e9..3358dd6cdf 100644 --- a/kotlinx-coroutines-core/jvm/test/WithDefaultContextTest.kt +++ b/kotlinx-coroutines-core/jvm/test/WithDefaultContextTest.kt @@ -27,4 +27,4 @@ class WithDefaultContextTest : TestBase() { assertEquals("OK", result) finish(4) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/WithTimeoutChildDispatchStressTest.kt b/kotlinx-coroutines-core/jvm/test/WithTimeoutChildDispatchStressTest.kt index cc5e1d86e1..6cb67653f4 100644 --- a/kotlinx-coroutines-core/jvm/test/WithTimeoutChildDispatchStressTest.kt +++ b/kotlinx-coroutines-core/jvm/test/WithTimeoutChildDispatchStressTest.kt @@ -26,4 +26,4 @@ class WithTimeoutChildDispatchStressTest : TestBase() { assertEquals("DONE", result) } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/WithTimeoutOrNullThreadDispatchTest.kt b/kotlinx-coroutines-core/jvm/test/WithTimeoutOrNullThreadDispatchTest.kt index a5aeefdae9..a251931a5e 100644 --- a/kotlinx-coroutines-core/jvm/test/WithTimeoutOrNullThreadDispatchTest.kt +++ b/kotlinx-coroutines-core/jvm/test/WithTimeoutOrNullThreadDispatchTest.kt @@ -76,4 +76,4 @@ class WithTimeoutOrNullThreadDispatchTest : TestBase() { } finish(6) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/WithTimeoutThreadDispatchTest.kt b/kotlinx-coroutines-core/jvm/test/WithTimeoutThreadDispatchTest.kt index 58c7336dc8..f92f9a7342 100644 --- a/kotlinx-coroutines-core/jvm/test/WithTimeoutThreadDispatchTest.kt +++ b/kotlinx-coroutines-core/jvm/test/WithTimeoutThreadDispatchTest.kt @@ -79,4 +79,4 @@ class WithTimeoutThreadDispatchTest : TestBase() { } finish(7) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/channels/CancelledChannelLeakTest.kt b/kotlinx-coroutines-core/jvm/test/channels/CancelledChannelLeakTest.kt index 06108a6fe6..eedcc64dfe 100644 --- a/kotlinx-coroutines-core/jvm/test/channels/CancelledChannelLeakTest.kt +++ b/kotlinx-coroutines-core/jvm/test/channels/CancelledChannelLeakTest.kt @@ -24,4 +24,4 @@ class CancelledChannelLeakTest : TestBase() { } class X -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/exceptions/StackTraceRecoveryResumeModeTest.kt b/kotlinx-coroutines-core/jvm/test/exceptions/StackTraceRecoveryResumeModeTest.kt index 1039d2951d..29a8a8fba7 100644 --- a/kotlinx-coroutines-core/jvm/test/exceptions/StackTraceRecoveryResumeModeTest.kt +++ b/kotlinx-coroutines-core/jvm/test/exceptions/StackTraceRecoveryResumeModeTest.kt @@ -143,4 +143,4 @@ class StackTraceRecoveryResumeModeTest : TestBase() { yield() } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/exceptions/StackTraceRecoveryWithTimeoutTest.kt b/kotlinx-coroutines-core/jvm/test/exceptions/StackTraceRecoveryWithTimeoutTest.kt index 6d573669bc..fc054e4072 100644 --- a/kotlinx-coroutines-core/jvm/test/exceptions/StackTraceRecoveryWithTimeoutTest.kt +++ b/kotlinx-coroutines-core/jvm/test/exceptions/StackTraceRecoveryWithTimeoutTest.kt @@ -82,4 +82,4 @@ class StackTraceRecoveryWithTimeoutTest : TestBase() { } expectUnreached() } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/flow/FirstJvmTest.kt b/kotlinx-coroutines-core/jvm/test/flow/FirstJvmTest.kt index 1ac9bd2c9c..b8fbfb0518 100644 --- a/kotlinx-coroutines-core/jvm/test/flow/FirstJvmTest.kt +++ b/kotlinx-coroutines-core/jvm/test/flow/FirstJvmTest.kt @@ -22,4 +22,4 @@ class FirstJvmTest : TestBase() { }.take(1).toList() assertEquals(listOf(1), values) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/flow/OnCompletionInterceptedReleaseTest.kt b/kotlinx-coroutines-core/jvm/test/flow/OnCompletionInterceptedReleaseTest.kt index 5d332bf3ad..75f6aafa32 100644 --- a/kotlinx-coroutines-core/jvm/test/flow/OnCompletionInterceptedReleaseTest.kt +++ b/kotlinx-coroutines-core/jvm/test/flow/OnCompletionInterceptedReleaseTest.kt @@ -39,4 +39,4 @@ class OnCompletionInterceptedReleaseTest : TestBase() { released++ } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/internal/LockFreeTaskQueueStressTest.kt b/kotlinx-coroutines-core/jvm/test/internal/LockFreeTaskQueueStressTest.kt index 625df7665f..90b1893213 100644 --- a/kotlinx-coroutines-core/jvm/test/internal/LockFreeTaskQueueStressTest.kt +++ b/kotlinx-coroutines-core/jvm/test/internal/LockFreeTaskQueueStressTest.kt @@ -113,4 +113,4 @@ class LockFreeTaskQueueStressTest( println("T: produced=${produced.value}, consumed=${consumed.value}") assertEquals(produced.value, consumed.value) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/internal/LockFreeTaskQueueTest.kt b/kotlinx-coroutines-core/jvm/test/internal/LockFreeTaskQueueTest.kt index de4dff8ad5..ebdcf93c6b 100644 --- a/kotlinx-coroutines-core/jvm/test/internal/LockFreeTaskQueueTest.kt +++ b/kotlinx-coroutines-core/jvm/test/internal/LockFreeTaskQueueTest.kt @@ -70,4 +70,4 @@ class LockFreeTaskQueueTest( } assertTrue(q.isEmpty) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/jdk8/time/FlowDebounceTest.kt b/kotlinx-coroutines-core/jvm/test/jdk8/time/FlowDebounceTest.kt index 09ae63993c..98bda887b7 100644 --- a/kotlinx-coroutines-core/jvm/test/jdk8/time/FlowDebounceTest.kt +++ b/kotlinx-coroutines-core/jvm/test/jdk8/time/FlowDebounceTest.kt @@ -32,4 +32,4 @@ class FlowDebounceTest : TestBase() { assertEquals(listOf("A", "D", "E"), result) finish(5) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/jdk8/time/WithTimeoutTest.kt b/kotlinx-coroutines-core/jvm/test/jdk8/time/WithTimeoutTest.kt index c34a6b1935..f51d1f13fd 100644 --- a/kotlinx-coroutines-core/jvm/test/jdk8/time/WithTimeoutTest.kt +++ b/kotlinx-coroutines-core/jvm/test/jdk8/time/WithTimeoutTest.kt @@ -62,4 +62,4 @@ class WithTimeoutTest : TestBase() { finish(3) } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/lincheck/LockFreeTaskQueueLincheckTest.kt b/kotlinx-coroutines-core/jvm/test/lincheck/LockFreeTaskQueueLincheckTest.kt index 9a44891733..8b384c10d4 100644 --- a/kotlinx-coroutines-core/jvm/test/lincheck/LockFreeTaskQueueLincheckTest.kt +++ b/kotlinx-coroutines-core/jvm/test/lincheck/LockFreeTaskQueueLincheckTest.kt @@ -41,4 +41,4 @@ internal class SCLockFreeTaskQueueWithRemoveLincheckTest : AbstractLockFreeTaskQ @QuiescentConsistent @Operation(nonParallelGroup = "consumer") fun removeFirstOrNull() = q.removeFirstOrNull() -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/lincheck/ResizableAtomicArrayLincheckTest.kt b/kotlinx-coroutines-core/jvm/test/lincheck/ResizableAtomicArrayLincheckTest.kt index 5561a7dbf3..2e7e995d4f 100644 --- a/kotlinx-coroutines-core/jvm/test/lincheck/ResizableAtomicArrayLincheckTest.kt +++ b/kotlinx-coroutines-core/jvm/test/lincheck/ResizableAtomicArrayLincheckTest.kt @@ -17,4 +17,4 @@ class ResizableAtomicArrayLincheckTest : AbstractLincheckTest() { fun set(@Param(name = "index") index: Int, @Param(name = "value") value: Int) { a.setSynchronized(index, value) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/scheduling/BlockingCoroutineDispatcherThreadLimitStressTest.kt b/kotlinx-coroutines-core/jvm/test/scheduling/BlockingCoroutineDispatcherThreadLimitStressTest.kt index 29d8ed97aa..49d71981db 100644 --- a/kotlinx-coroutines-core/jvm/test/scheduling/BlockingCoroutineDispatcherThreadLimitStressTest.kt +++ b/kotlinx-coroutines-core/jvm/test/scheduling/BlockingCoroutineDispatcherThreadLimitStressTest.kt @@ -55,4 +55,4 @@ class BlockingCoroutineDispatcherThreadLimitStressTest : SchedulerTestBase() { tasks.awaitAll() assertTrue(observedParallelism.max() <= CORES_COUNT, "Unexpected state: $observedParallelism") } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/selects/SelectDeadlockStressTest.kt b/kotlinx-coroutines-core/jvm/test/selects/SelectDeadlockStressTest.kt index 466aecf9f2..82f902b738 100644 --- a/kotlinx-coroutines-core/jvm/test/selects/SelectDeadlockStressTest.kt +++ b/kotlinx-coroutines-core/jvm/test/selects/SelectDeadlockStressTest.kt @@ -56,4 +56,4 @@ class SelectDeadlockStressTest : TestBase() { } } } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/jvm/test/selects/SelectMemoryLeakStressTest.kt b/kotlinx-coroutines-core/jvm/test/selects/SelectMemoryLeakStressTest.kt index 4b0ce46916..b9d77d9ac7 100644 --- a/kotlinx-coroutines-core/jvm/test/selects/SelectMemoryLeakStressTest.kt +++ b/kotlinx-coroutines-core/jvm/test/selects/SelectMemoryLeakStressTest.kt @@ -53,4 +53,4 @@ class SelectMemoryLeakStressTest : TestBase() { // capture big value for fast OOM in case of a bug private fun bigValue(): ByteArray = ByteArray(4096) -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-core/wasmJs/src/Debug.kt b/kotlinx-coroutines-core/wasmJs/src/Debug.kt index 00fa5bdbce..7ad1a33d44 100644 --- a/kotlinx-coroutines-core/wasmJs/src/Debug.kt +++ b/kotlinx-coroutines-core/wasmJs/src/Debug.kt @@ -13,4 +13,4 @@ internal external interface Console { fun error(s: String) } -internal external val console: Console \ No newline at end of file +internal external val console: Console diff --git a/kotlinx-coroutines-core/wasmWasi/src/Debug.kt b/kotlinx-coroutines-core/wasmWasi/src/Debug.kt index 740265ac84..49df78a21d 100644 --- a/kotlinx-coroutines-core/wasmWasi/src/Debug.kt +++ b/kotlinx-coroutines-core/wasmWasi/src/Debug.kt @@ -7,4 +7,4 @@ internal actual val Any.hexAddress: String internal actual val Any.classSimpleName: String get() = this::class.simpleName ?: "Unknown" -internal actual inline fun assert(value: () -> Boolean) {} \ No newline at end of file +internal actual inline fun assert(value: () -> Boolean) {} diff --git a/kotlinx-coroutines-core/wasmWasi/src/internal/CoroutineExceptionHandlerImpl.kt b/kotlinx-coroutines-core/wasmWasi/src/internal/CoroutineExceptionHandlerImpl.kt index 5294921e91..1566c551b9 100644 --- a/kotlinx-coroutines-core/wasmWasi/src/internal/CoroutineExceptionHandlerImpl.kt +++ b/kotlinx-coroutines-core/wasmWasi/src/internal/CoroutineExceptionHandlerImpl.kt @@ -56,4 +56,4 @@ internal actual fun propagateExceptionFinalResort(exception: Throwable) { val errorCode = printlnErrorStream("!!!") val returnCode = if (errorCode != 0) errorCode else 1 wasiProcExit(returnCode) -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-debug/test/Example.kt b/kotlinx-coroutines-debug/test/Example.kt index 8a0944cbd1..d9b6d43090 100644 --- a/kotlinx-coroutines-debug/test/Example.kt +++ b/kotlinx-coroutines-debug/test/Example.kt @@ -29,4 +29,4 @@ fun main() = runBlocking { DebugProbes.dumpCoroutines() println("\nDumping only deferred") DebugProbes.printJob(deferred) -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutExtensionTest.kt b/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutExtensionTest.kt index 12298152ce..6b418e8b15 100644 --- a/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutExtensionTest.kt +++ b/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutExtensionTest.kt @@ -114,4 +114,4 @@ class CoroutinesTimeoutExtensionTest { private fun expectUnreached(): Nothing { error("Should not be reached") -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutInheritanceTest.kt b/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutInheritanceTest.kt index 4aa90bb74f..d70a9102aa 100644 --- a/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutInheritanceTest.kt +++ b/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutInheritanceTest.kt @@ -54,4 +54,4 @@ class CoroutinesTimeoutInheritanceTest { } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutTest.kt b/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutTest.kt index e504a3c315..7a8a864f02 100644 --- a/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutTest.kt +++ b/kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutTest.kt @@ -163,4 +163,4 @@ private fun countDumps(capturedOut: ByteArrayOutputStream): Int { } } return result -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-debug/test/junit5/RegisterExtensionExample.kt b/kotlinx-coroutines-debug/test/junit5/RegisterExtensionExample.kt index 10411b7144..2f244a41ba 100644 --- a/kotlinx-coroutines-debug/test/junit5/RegisterExtensionExample.kt +++ b/kotlinx-coroutines-debug/test/junit5/RegisterExtensionExample.kt @@ -13,4 +13,4 @@ class RegisterExtensionExample { fun testThatHangs() = runBlocking { delay(Long.MAX_VALUE) // somewhere deep in the stack } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-test/js/src/internal/JsPromiseInterfaceForTesting.kt b/kotlinx-coroutines-test/js/src/internal/JsPromiseInterfaceForTesting.kt index 753c51dfaa..18c64199d4 100644 --- a/kotlinx-coroutines-test/js/src/internal/JsPromiseInterfaceForTesting.kt +++ b/kotlinx-coroutines-test/js/src/internal/JsPromiseInterfaceForTesting.kt @@ -16,4 +16,4 @@ public external class JsPromiseInterfaceForTesting { * @suppress */ public fun then(onFulfilled: ((Unit) -> Unit)): JsPromiseInterfaceForTesting -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-test/js/test/PromiseTest.kt b/kotlinx-coroutines-test/js/test/PromiseTest.kt index 8774e4aba4..733b1300ff 100644 --- a/kotlinx-coroutines-test/js/test/PromiseTest.kt +++ b/kotlinx-coroutines-test/js/test/PromiseTest.kt @@ -15,4 +15,4 @@ class PromiseTest { p.await() assertTrue(promiseEntered) } -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-test/wasmJs/src/internal/JsPromiseInterfaceForTesting.kt b/kotlinx-coroutines-test/wasmJs/src/internal/JsPromiseInterfaceForTesting.kt index a7da26c9c1..132198ba3d 100644 --- a/kotlinx-coroutines-test/wasmJs/src/internal/JsPromiseInterfaceForTesting.kt +++ b/kotlinx-coroutines-test/wasmJs/src/internal/JsPromiseInterfaceForTesting.kt @@ -17,4 +17,4 @@ public external class JsPromiseInterfaceForTesting : JsAny { * @suppress */ public fun then(onFulfilled: ((JsAny) -> Unit)): JsPromiseInterfaceForTesting -} \ No newline at end of file +} diff --git a/kotlinx-coroutines-test/wasmWasi/src/TestBuilders.kt b/kotlinx-coroutines-test/wasmWasi/src/TestBuilders.kt index 7c407d3bf4..b4f58e5843 100644 --- a/kotlinx-coroutines-test/wasmWasi/src/TestBuilders.kt +++ b/kotlinx-coroutines-test/wasmWasi/src/TestBuilders.kt @@ -12,4 +12,4 @@ internal actual fun systemPropertyImpl(name: String): String? = null internal actual fun createTestResult(testProcedure: suspend CoroutineScope.() -> Unit) = runTestCoroutine(EmptyCoroutineContext, testProcedure) -internal actual fun dumpCoroutines() { } \ No newline at end of file +internal actual fun dumpCoroutines() { } diff --git a/kotlinx-coroutines-test/wasmWasi/src/internal/TestMainDispatcher.kt b/kotlinx-coroutines-test/wasmWasi/src/internal/TestMainDispatcher.kt index 1419f672e9..be0b1686a5 100644 --- a/kotlinx-coroutines-test/wasmWasi/src/internal/TestMainDispatcher.kt +++ b/kotlinx-coroutines-test/wasmWasi/src/internal/TestMainDispatcher.kt @@ -6,4 +6,4 @@ internal actual fun Dispatchers.getTestMainDispatcher(): TestMainDispatcher = when (val mainDispatcher = Main) { is TestMainDispatcher -> mainDispatcher else -> TestMainDispatcher(mainDispatcher).also { injectMain(it) } - } \ No newline at end of file + } diff --git a/reactive/kotlinx-coroutines-jdk9/test/AwaitTest.kt b/reactive/kotlinx-coroutines-jdk9/test/AwaitTest.kt index 4b0b77c801..3fc0d65a77 100644 --- a/reactive/kotlinx-coroutines-jdk9/test/AwaitTest.kt +++ b/reactive/kotlinx-coroutines-jdk9/test/AwaitTest.kt @@ -37,4 +37,4 @@ class AwaitTest: TestBase() { finish(7) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-jdk9/test/PublisherBackpressureTest.kt b/reactive/kotlinx-coroutines-jdk9/test/PublisherBackpressureTest.kt index b7bbcbd261..488dac86af 100644 --- a/reactive/kotlinx-coroutines-jdk9/test/PublisherBackpressureTest.kt +++ b/reactive/kotlinx-coroutines-jdk9/test/PublisherBackpressureTest.kt @@ -55,4 +55,4 @@ class PublisherBackpressureTest : TestBase() { yield() // shall perform finally in coroutine finish(13) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-jdk9/test/PublisherCollectTest.kt b/reactive/kotlinx-coroutines-jdk9/test/PublisherCollectTest.kt index aa2b679304..73ebc962ea 100644 --- a/reactive/kotlinx-coroutines-jdk9/test/PublisherCollectTest.kt +++ b/reactive/kotlinx-coroutines-jdk9/test/PublisherCollectTest.kt @@ -140,4 +140,4 @@ class PublisherCollectTest: TestBase() { } finish(x + 4) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-jdk9/test/PublisherCompletionStressTest.kt b/reactive/kotlinx-coroutines-jdk9/test/PublisherCompletionStressTest.kt index abacdec38b..765fa23d92 100644 --- a/reactive/kotlinx-coroutines-jdk9/test/PublisherCompletionStressTest.kt +++ b/reactive/kotlinx-coroutines-jdk9/test/PublisherCompletionStressTest.kt @@ -30,4 +30,4 @@ class PublisherCompletionStressTest : TestBase() { } } } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactive/test/AwaitTest.kt b/reactive/kotlinx-coroutines-reactive/test/AwaitTest.kt index 227720489c..0faa442b80 100644 --- a/reactive/kotlinx-coroutines-reactive/test/AwaitTest.kt +++ b/reactive/kotlinx-coroutines-reactive/test/AwaitTest.kt @@ -37,4 +37,4 @@ class AwaitTest: TestBase() { finish(7) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactive/test/PublisherAsFlowThreadContextElementTest.kt b/reactive/kotlinx-coroutines-reactive/test/PublisherAsFlowThreadContextElementTest.kt index 8f21677cb8..11081b8c0f 100644 --- a/reactive/kotlinx-coroutines-reactive/test/PublisherAsFlowThreadContextElementTest.kt +++ b/reactive/kotlinx-coroutines-reactive/test/PublisherAsFlowThreadContextElementTest.kt @@ -185,4 +185,4 @@ class MyElement(val data: MyData) : ThreadContextElement { override fun restoreThreadContext(context: CoroutineContext, oldState: MyData?) { myThreadLocal.set(oldState) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactive/test/PublisherBackpressureTest.kt b/reactive/kotlinx-coroutines-reactive/test/PublisherBackpressureTest.kt index 8b8d0fc7a1..5fc725dd00 100644 --- a/reactive/kotlinx-coroutines-reactive/test/PublisherBackpressureTest.kt +++ b/reactive/kotlinx-coroutines-reactive/test/PublisherBackpressureTest.kt @@ -55,4 +55,4 @@ class PublisherBackpressureTest : TestBase() { yield() // shall perform finally in coroutine finish(13) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactive/test/PublisherCollectTest.kt b/reactive/kotlinx-coroutines-reactive/test/PublisherCollectTest.kt index a7f94dfe98..c4a61d2023 100644 --- a/reactive/kotlinx-coroutines-reactive/test/PublisherCollectTest.kt +++ b/reactive/kotlinx-coroutines-reactive/test/PublisherCollectTest.kt @@ -138,4 +138,4 @@ class PublisherCollectTest: TestBase() { } finish(x + 4) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactive/test/PublisherCompletionStressTest.kt b/reactive/kotlinx-coroutines-reactive/test/PublisherCompletionStressTest.kt index f3ea685459..de14956ded 100644 --- a/reactive/kotlinx-coroutines-reactive/test/PublisherCompletionStressTest.kt +++ b/reactive/kotlinx-coroutines-reactive/test/PublisherCompletionStressTest.kt @@ -30,4 +30,4 @@ class PublisherCompletionStressTest : TestBase() { } } } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactive/test/PublisherRequestStressTest.kt b/reactive/kotlinx-coroutines-reactive/test/PublisherRequestStressTest.kt index 18ab7c31e5..62fa389763 100644 --- a/reactive/kotlinx-coroutines-reactive/test/PublisherRequestStressTest.kt +++ b/reactive/kotlinx-coroutines-reactive/test/PublisherRequestStressTest.kt @@ -137,4 +137,4 @@ class PublisherRequestStressTest : TestBase() { cont.resume(nextValue.getAndIncrement()) }) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactive/test/RangePublisherBufferedTest.kt b/reactive/kotlinx-coroutines-reactive/test/RangePublisherBufferedTest.kt index da1f3cced9..9a99b5a08b 100644 --- a/reactive/kotlinx-coroutines-reactive/test/RangePublisherBufferedTest.kt +++ b/reactive/kotlinx-coroutines-reactive/test/RangePublisherBufferedTest.kt @@ -24,4 +24,4 @@ class RangePublisherBufferedTest : @Ignore override fun required_spec309_requestNegativeNumberMustSignalIllegalArgumentException() { } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactive/test/RangePublisherTest.kt b/reactive/kotlinx-coroutines-reactive/test/RangePublisherTest.kt index 9d1f85a2fa..36e4e4fdb8 100644 --- a/reactive/kotlinx-coroutines-reactive/test/RangePublisherTest.kt +++ b/reactive/kotlinx-coroutines-reactive/test/RangePublisherTest.kt @@ -41,4 +41,4 @@ class RangePublisherWrappedTwiceTest : PublisherVerification(TestEnvironmen @Ignore override fun required_spec309_requestNegativeNumberMustSignalIllegalArgumentException() { } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactor/test/BackpressureTest.kt b/reactive/kotlinx-coroutines-reactor/test/BackpressureTest.kt index 16775eb56d..8d0b0508e4 100644 --- a/reactive/kotlinx-coroutines-reactor/test/BackpressureTest.kt +++ b/reactive/kotlinx-coroutines-reactor/test/BackpressureTest.kt @@ -47,4 +47,4 @@ class BackpressureTest : TestBase() { val channel = flow.onEach { if (it > 10) currentCoroutineContext().cancel() }.produceIn(this + Dispatchers.Default) channel.consumeEach { /* Do nothing, just consume elements */ } } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactor/test/FluxCompletionStressTest.kt b/reactive/kotlinx-coroutines-reactor/test/FluxCompletionStressTest.kt index 6c3ca4c6e9..04f5b00eea 100644 --- a/reactive/kotlinx-coroutines-reactor/test/FluxCompletionStressTest.kt +++ b/reactive/kotlinx-coroutines-reactor/test/FluxCompletionStressTest.kt @@ -31,4 +31,4 @@ class FluxCompletionStressTest : TestBase() { } } } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactor/test/FluxContextTest.kt b/reactive/kotlinx-coroutines-reactor/test/FluxContextTest.kt index a9eb522672..d79f327f31 100644 --- a/reactive/kotlinx-coroutines-reactor/test/FluxContextTest.kt +++ b/reactive/kotlinx-coroutines-reactor/test/FluxContextTest.kt @@ -37,4 +37,4 @@ class FluxContextTest : TestBase() { } finish(3) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactor/test/FluxMultiTest.kt b/reactive/kotlinx-coroutines-reactor/test/FluxMultiTest.kt index 3739bed6c6..a7ef34405b 100644 --- a/reactive/kotlinx-coroutines-reactor/test/FluxMultiTest.kt +++ b/reactive/kotlinx-coroutines-reactor/test/FluxMultiTest.kt @@ -79,4 +79,4 @@ class FluxMultiTest : TestBase() { assertEquals("OK", it) } } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-reactor/test/SchedulerTest.kt b/reactive/kotlinx-coroutines-reactor/test/SchedulerTest.kt index 7437d3a1b8..0e31c2ee38 100644 --- a/reactive/kotlinx-coroutines-reactor/test/SchedulerTest.kt +++ b/reactive/kotlinx-coroutines-reactor/test/SchedulerTest.kt @@ -28,4 +28,4 @@ class SchedulerTest : TestBase() { } finish(4) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-rx2/test/BackpressureTest.kt b/reactive/kotlinx-coroutines-rx2/test/BackpressureTest.kt index 033df37991..3bc41305ea 100644 --- a/reactive/kotlinx-coroutines-rx2/test/BackpressureTest.kt +++ b/reactive/kotlinx-coroutines-rx2/test/BackpressureTest.kt @@ -33,4 +33,4 @@ class BackpressureTest : TestBase() { } finish(3) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-rx2/test/Check.kt b/reactive/kotlinx-coroutines-rx2/test/Check.kt index ded4b7aed5..9d30983c44 100644 --- a/reactive/kotlinx-coroutines-rx2/test/Check.kt +++ b/reactive/kotlinx-coroutines-rx2/test/Check.kt @@ -70,4 +70,4 @@ inline fun withExceptionHandler(noinline handler: (Throwable) -> Unit, block: () } finally { RxJavaPlugins.setErrorHandler(original) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-rx2/test/FlowableContextTest.kt b/reactive/kotlinx-coroutines-rx2/test/FlowableContextTest.kt index 295250e564..bc3f753035 100644 --- a/reactive/kotlinx-coroutines-rx2/test/FlowableContextTest.kt +++ b/reactive/kotlinx-coroutines-rx2/test/FlowableContextTest.kt @@ -37,4 +37,4 @@ class FlowableContextTest : TestBase() { } finish(3) } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-rx2/test/ObservableCollectTest.kt b/reactive/kotlinx-coroutines-rx2/test/ObservableCollectTest.kt index 59c886d9da..95fddddca6 100644 --- a/reactive/kotlinx-coroutines-rx2/test/ObservableCollectTest.kt +++ b/reactive/kotlinx-coroutines-rx2/test/ObservableCollectTest.kt @@ -63,4 +63,4 @@ class ObservableCollectTest: TestBase() { finish(expectedSum + 3) } } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-rx2/test/SchedulerStressTest.kt b/reactive/kotlinx-coroutines-rx2/test/SchedulerStressTest.kt index 5b77e6aa63..68af5a182a 100644 --- a/reactive/kotlinx-coroutines-rx2/test/SchedulerStressTest.kt +++ b/reactive/kotlinx-coroutines-rx2/test/SchedulerStressTest.kt @@ -81,4 +81,4 @@ class SchedulerStressTest : TestBase() { disposable.dispose() } } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-rx2/test/SchedulerTest.kt b/reactive/kotlinx-coroutines-rx2/test/SchedulerTest.kt index cf163b71de..6a7401b63c 100644 --- a/reactive/kotlinx-coroutines-rx2/test/SchedulerTest.kt +++ b/reactive/kotlinx-coroutines-rx2/test/SchedulerTest.kt @@ -490,4 +490,4 @@ class SchedulerTest : TestBase() { } typealias RxSchedulerBlockNoDelay = (Runnable) -> Disposable -typealias RxSchedulerBlockWithDelay = (Runnable, Long, TimeUnit) -> Disposable \ No newline at end of file +typealias RxSchedulerBlockWithDelay = (Runnable, Long, TimeUnit) -> Disposable diff --git a/reactive/kotlinx-coroutines-rx3/test/ObservableCollectTest.kt b/reactive/kotlinx-coroutines-rx3/test/ObservableCollectTest.kt index ebfb8e6c92..cf20cbe6c6 100644 --- a/reactive/kotlinx-coroutines-rx3/test/ObservableCollectTest.kt +++ b/reactive/kotlinx-coroutines-rx3/test/ObservableCollectTest.kt @@ -62,4 +62,4 @@ class ObservableCollectTest: TestBase() { finish(expectedSum + 3) } } -} \ No newline at end of file +} diff --git a/reactive/kotlinx-coroutines-rx3/test/SchedulerTest.kt b/reactive/kotlinx-coroutines-rx3/test/SchedulerTest.kt index fd59503722..c3465c7397 100644 --- a/reactive/kotlinx-coroutines-rx3/test/SchedulerTest.kt +++ b/reactive/kotlinx-coroutines-rx3/test/SchedulerTest.kt @@ -490,4 +490,4 @@ class SchedulerTest : TestBase() { } typealias RxSchedulerBlockNoDelay = (Runnable) -> Disposable -typealias RxSchedulerBlockWithDelay = (Runnable, Long, TimeUnit) -> Disposable \ No newline at end of file +typealias RxSchedulerBlockWithDelay = (Runnable, Long, TimeUnit) -> Disposable diff --git a/ui/kotlinx-coroutines-javafx/test/JavaFxStressTest.kt b/ui/kotlinx-coroutines-javafx/test/JavaFxStressTest.kt index 1634f59a7f..9b7cd7ded0 100644 --- a/ui/kotlinx-coroutines-javafx/test/JavaFxStressTest.kt +++ b/ui/kotlinx-coroutines-javafx/test/JavaFxStressTest.kt @@ -37,4 +37,4 @@ class JavaFxStressTest : TestBase() { i += 1 } } -} \ No newline at end of file +} diff --git a/ui/kotlinx-coroutines-javafx/test/examples/FxExampleApp.kt b/ui/kotlinx-coroutines-javafx/test/examples/FxExampleApp.kt index 6ef81d648d..0acde78887 100644 --- a/ui/kotlinx-coroutines-javafx/test/examples/FxExampleApp.kt +++ b/ui/kotlinx-coroutines-javafx/test/examples/FxExampleApp.kt @@ -126,4 +126,4 @@ class FxTestApp : Application(), CoroutineScope { job.cancel() job = Job() } -} \ No newline at end of file +}