Cleanup kotlin sources
1. remove unused imports 2. remove redundant semicolon 3. remove empty class body 4. remove redundant 'constructor' keyword 5. remove redundant 'Unit' return type 6. use non-null type if possible See gh-38708
This commit is contained in:
committed by
Moritz Halbritter
parent
4ad9f1174f
commit
ebfbc0ef05
@@ -4,8 +4,7 @@ import org.springframework.boot.SpringBootConfiguration
|
||||
import org.springframework.boot.runApplication
|
||||
|
||||
@SpringBootConfiguration(proxyBeanMethods = false)
|
||||
open class KotlinApplicationWithMainThrowingException {
|
||||
}
|
||||
open class KotlinApplicationWithMainThrowingException
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
runApplication<KotlinApplicationWithMainThrowingException>(*args)
|
||||
|
||||
@@ -18,9 +18,7 @@ package org.springframework.boot.test.context
|
||||
|
||||
import org.assertj.core.api.Assertions.assertThatIllegalStateException
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.boot.SpringBootConfiguration
|
||||
import org.springframework.boot.test.context.SpringBootTest.UseMainMethod
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.test.context.TestContext
|
||||
import org.springframework.test.context.TestContextManager
|
||||
|
||||
|
||||
Reference in New Issue
Block a user