From 8b9579eeb7ba0bd52499510159e446ddbdb7b457 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 20 Jun 2022 10:33:34 +0200 Subject: [PATCH] Polish "Harmonize Kotlin example" See gh-31458 --- .../springapplication/applicationexit/MyApplication.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt index 488273cb8509..ad7abfcce8b4 100644 --- a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt +++ b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt @@ -21,6 +21,8 @@ import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.context.annotation.Bean +import kotlin.system.exitProcess + @SpringBootApplication class MyApplication { @@ -32,5 +34,6 @@ class MyApplication { } fun main(args: Array) { - exitProcess(SpringApplication.exit(SpringApplication.run(MyApplication::class.java, *args))) + exitProcess(SpringApplication.exit( + SpringApplication.run(MyApplication::class.java, *args))) }