Fix warnings in Kotlin tests

This commit is contained in:
Sebastien Deleuze
2017-07-19 08:12:48 +02:00
parent e2fd04dff3
commit ff85726fa9
2 changed files with 2 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ import org.springframework.context.support.BeanDefinitionDsl.*
import org.springframework.core.env.SimpleCommandLinePropertySource
import org.springframework.core.env.get
@Suppress("UNUSED_EXPRESSION")
class BeanDefinitionDslTests {
@Test

View File

@@ -34,6 +34,7 @@ inline fun <reified T : Any, S : Publisher<T>> WebTestClient.RequestBodySpec.bod
* @author Sebastien Deleuze
* @since 5.0
*/
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
inline fun <reified B : Any> WebTestClient.ResponseSpec.expectBody(): WebTestClient.BodySpec<B, *> =
expectBody(B::class.java)