Skip to content

Commit 8b9579e

Browse files
committed
Polish "Harmonize Kotlin example"
See gh-31458
1 parent 6685d49 commit 8b9579e

File tree

1 file changed

+4
-1
lines changed
  • spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit

1 file changed

+4
-1
lines changed

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import org.springframework.boot.SpringApplication
2121
import org.springframework.boot.autoconfigure.SpringBootApplication
2222
import org.springframework.context.annotation.Bean
2323

24+
import kotlin.system.exitProcess
25+
2426
@SpringBootApplication
2527
class MyApplication {
2628

@@ -32,5 +34,6 @@ class MyApplication {
3234
}
3335

3436
fun main(args: Array<String>) {
35-
exitProcess(SpringApplication.exit(SpringApplication.run(MyApplication::class.java, *args)))
37+
exitProcess(SpringApplication.exit(
38+
SpringApplication.run(MyApplication::class.java, *args)))
3639
}

0 commit comments

Comments
 (0)