From 90a8aebbd779053aa3f157ac3f500f8d9118da5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20G=C3=B3ral?= Date: Mon, 12 Jul 2021 09:45:56 +0200 Subject: [PATCH] Fixes --- .../src/main/kotlin/flank/exection/parallel/Parallel.kt | 6 +++--- .../src/main/kotlin/flank/exection/parallel/Verify.kt | 2 +- .../main/kotlin/flank/exection/parallel/internal/Type.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/Parallel.kt b/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/Parallel.kt index 9d70415b05..41d248c4e1 100644 --- a/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/Parallel.kt +++ b/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/Parallel.kt @@ -51,7 +51,7 @@ object Parallel { protected operator fun Type.invoke(select: T.() -> V) = lazyProperty(this, select) /** - * Internal accessor for initializing (validating) eager properties + * Internal accessor for initializing (validating) eager properties. */ internal fun validate() = eager() } @@ -72,8 +72,8 @@ object Parallel { /** * The task signature. * - * @param type A return a type of task - * @param args A set of types for arguments + * @param type A return a type of task. + * @param args A set of argument types. */ data class Signature( val type: Type, diff --git a/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/Verify.kt b/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/Verify.kt index f850efacba..b98d23eb93 100644 --- a/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/Verify.kt +++ b/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/Verify.kt @@ -3,6 +3,6 @@ package flank.exection.parallel import flank.exection.parallel.internal.checkThrowableValues /** - * Verify given [ParallelState] has no errors. + * Verify that given [ParallelState] has no errors. */ fun ParallelState.verify(): ParallelState = checkThrowableValues() diff --git a/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/internal/Type.kt b/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/internal/Type.kt index fd24643ebe..cdff23b174 100644 --- a/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/internal/Type.kt +++ b/tool/execution/parallel/src/main/kotlin/flank/exection/parallel/internal/Type.kt @@ -2,7 +2,7 @@ package flank.exection.parallel.internal import flank.exection.parallel.Parallel -fun dynamicType(type: Class): Parallel.Type = DynamicType(type) +internal fun dynamicType(type: Class): Parallel.Type = DynamicType(type) internal class DynamicType(val type: Class) : Parallel.Type { override fun equals(other: Any?): Boolean = (other as? DynamicType<*>)?.type == type