diff --git a/buildSrc/src/main/kotlin/io/spine/gradle/Runtime.kt b/buildSrc/src/main/kotlin/io/spine/gradle/Runtime.kt index c5b5f5464..0e67c108a 100644 --- a/buildSrc/src/main/kotlin/io/spine/gradle/Runtime.kt +++ b/buildSrc/src/main/kotlin/io/spine/gradle/Runtime.kt @@ -46,15 +46,15 @@ private const val ABOUT = "" class Cli(private val workingFolder: File) { /** - * Executes the given terminal command and retrieves the command output. + * Executes the given terminal command and returns its output. * - *
{@link Runtime#exec(String[], String[], File) Executes} the given {@code String} array as - * a CLI command. If the execution is successful, returns the command output. Throws - * an {@link IllegalStateException} otherwise. + *
Internally calls {@link Runtime#exec(String[], String[], File)} to run the given + * {@code String} array as a CLI command. If the execution is successful, the command output + * is returned; otherwise an {@link IllegalStateException} is thrown. * * @param command the command to execute * @return the command line output - * @throws IllegalStateException upon an execution error + * @throws IllegalStateException if the execution fails */ fun execute(vararg command: String): String { val outWriter = StringWriter() @@ -87,7 +87,7 @@ class Cli(private val workingFolder: File) { /** * Asynchronously reads all lines from this [InputStream] and appends them - * to the passed [StringWriter]. + * to the given [StringWriter]. */ fun InputStream.pourTo(dest: StringWriter) { Thread { diff --git a/buildSrc/src/main/kotlin/io/spine/gradle/report/pom/PomXmlWriter.kt b/buildSrc/src/main/kotlin/io/spine/gradle/report/pom/PomXmlWriter.kt index 53122196a..21394a7f5 100644 --- a/buildSrc/src/main/kotlin/io/spine/gradle/report/pom/PomXmlWriter.kt +++ b/buildSrc/src/main/kotlin/io/spine/gradle/report/pom/PomXmlWriter.kt @@ -35,9 +35,9 @@ import java.io.StringWriter /** * Writes the dependencies of a Gradle project and its subprojects as a `pom.xml` file. * - * The resulting file is not usable for `maven` build tasks, but serves rather as a description - * of the first-level dependencies for each project/subproject. Their transitive dependencies - * are not included into the result. + * The resulting file is not usable for `maven` build tasks but serves as a description + * of the first-level dependencies for each project or subproject. Their transitive dependencies + * are not included in the result. */ internal class PomXmlWriter internal constructor( @@ -48,10 +48,10 @@ internal constructor( * Writes the `pom.xml` file containing dependencies of this project * and its subprojects to the specified location. * - *
If a file with the specified location exists, its contents will be substituted + *
If a file with the specified location exists, its contents are replaced * with a new `pom.xml`. * - * @param file a file to write `pom.xml` contents to + * @param file a file to write the `pom.xml` contents to */ fun writeTo(file: File) { val fileWriter = FileWriter(file) @@ -74,7 +74,7 @@ internal constructor( /** * Obtains a string that contains project dependencies as XML. * - *
Obtained string also contains a closing project tag. + *
The returned string also contains the closing project tag.
*/
private fun projectDependencies(): String {
val destination = StringWriter()
diff --git a/logging/src/commonMain/kotlin/io/spine/logging/LoggingFactory.kt b/logging/src/commonMain/kotlin/io/spine/logging/LoggingFactory.kt
index 6fa1ca3f1..5bf9ebc0b 100644
--- a/logging/src/commonMain/kotlin/io/spine/logging/LoggingFactory.kt
+++ b/logging/src/commonMain/kotlin/io/spine/logging/LoggingFactory.kt
@@ -36,14 +36,14 @@ public expect object LoggingFactory {
/**
* Obtains the logger for the enclosing class.
*
- * Implementation should provide the same logger instance for the same class.
+ * The implementation should return the same logger instance for the same class.
*/
public fun Although, {@code system} is not the best name for this package.
- * The better option is {@code default}, but it is reserved by Java
- * and cannot be used here.
+ * Although {@code system} is not the best name for this package,
+ * the better option, {@code default}, is reserved by Java and cannot be used here.
*
* @see Original Java code of Google Flogger
*/