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 488273cb85..ad7abfcce8 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))) }