Skip to content

Commit b533112

Browse files
committed
Fixed date log pattern in examples
1 parent a167c28 commit b533112

File tree

5 files changed

+5
-5
lines changed
  • kotlinx-coroutines-core/src/test/kotlin/examples
  • kotlinx-coroutines-javafx/src/test/kotlin/examples
  • kotlinx-coroutines-jdk8/src/test/kotlin/examples
  • kotlinx-coroutines-nio/src/test/kotlin/examples
  • kotlinx-coroutines-swing/src/test/kotlin/examples

5 files changed

+5
-5
lines changed

kotlinx-coroutines-core/src/test/kotlin/examples/log.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ package examples
1919
import java.text.SimpleDateFormat
2020
import java.util.*
2121

22-
fun log(msg: String) = println("${SimpleDateFormat("YYYYMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")
22+
fun log(msg: String) = println("${SimpleDateFormat("yyyyMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")

kotlinx-coroutines-javafx/src/test/kotlin/examples/FxExampleApp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fun main(args: Array<String>) {
3838
Application.launch(FxTestApp::class.java, *args)
3939
}
4040

41-
fun log(msg: String) = println("${SimpleDateFormat("YYYYMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")
41+
fun log(msg: String) = println("${SimpleDateFormat("yyyyMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")
4242

4343
class FxTestApp : Application() {
4444
val buttons = FlowPane().apply {

kotlinx-coroutines-jdk8/src/test/kotlin/examples/log.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ package examples
1919
import java.text.SimpleDateFormat
2020
import java.util.*
2121

22-
fun log(msg: String) = println("${SimpleDateFormat("YYYYMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")
22+
fun log(msg: String) = println("${SimpleDateFormat("yyyyMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")

kotlinx-coroutines-nio/src/test/kotlin/examples/log.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ package examples
1919
import java.text.SimpleDateFormat
2020
import java.util.*
2121

22-
fun log(msg: String) = println("${SimpleDateFormat("YYYYMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")
22+
fun log(msg: String) = println("${SimpleDateFormat("yyyyMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")

kotlinx-coroutines-swing/src/test/kotlin/examples/swing-example.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import java.util.*
2323
import java.util.concurrent.ForkJoinPool
2424
import kotlin.coroutines.experimental.suspendCoroutine
2525

26-
fun log(msg: String) = println("${SimpleDateFormat("YYYYMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")
26+
fun log(msg: String) = println("${SimpleDateFormat("yyyyMMdd-HHmmss.sss").format(Date())} [${Thread.currentThread().name}] $msg")
2727

2828
suspend fun makeRequest(): String {
2929
log("Making request...")

0 commit comments

Comments
 (0)