Skip to content

Commit e55110f

Browse files
hanggatheangrydev
andauthored
Update core-kotlin-modules/core-kotlin-collections-6/src/test/kotlin/com/baeldung/parallelOperationsCollections/ParallelOperationCollectionsUnitTest.kt
okay Co-authored-by: Liam Williams <[email protected]>
1 parent 25863c4 commit e55110f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

core-kotlin-modules/core-kotlin-collections-6/src/test/kotlin/com/baeldung/parallelOperationsCollections/ParallelOperationCollectionsUnitTest.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,17 @@ class ParallelOperationCollectionsUnitTest {
4343
}
4444

4545
private fun String.printAsHeader() {
46-
logger.info("{} {}", "-".repeat(32 - Thread.currentThread().name.length), this)
46+
logger.info(this)
4747
}
4848

4949
private fun Person.setAdult() {
5050
this.isAdult = this.age >= 18
51-
logger.info("{} {}", " ".repeat(32 - Thread.currentThread().name.length), this)
51+
logger.info(this.toString())
5252
}
53-
53+
5454
private fun Instant.printTotalTime() {
5555
val totalTime = Duration.between(this, Instant.now()).toMillis()
56-
logger.info(
57-
"{} Total time taken: {} ms \n", "-".repeat(32 - Thread.currentThread().name.length), totalTime
58-
)
56+
logger.info("Total time taken: {} ms", totalTime)
5957
}
6058

6159
@Test

0 commit comments

Comments
 (0)