Skip to content

Commit 36d9357

Browse files
committed
Fix Kotlin compilation errors
1 parent dcb9383 commit 36d9357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: spring-web/src/test/kotlin/org/springframework/web/client/RestClientExtensionsTests.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class RestClientExtensionsTests {
6767
val foo = Foo()
6868
every { requestBodySpec.exchange(any<RequestHeadersSpec.ExchangeFunction<Foo>>(), any()) } returns foo
6969
val exchangeFunction: (HttpRequest, RequestHeadersSpec.ConvertibleClientHttpResponse) -> Foo? =
70-
{ request, response -> foo }
70+
{ _, _ -> foo }
7171
val value = requestBodySpec.requiredExchange(exchangeFunction)
7272
assertThat(value).isEqualTo(foo)
7373
}
@@ -76,7 +76,7 @@ class RestClientExtensionsTests {
7676
fun `RequestHeadersSpec#requiredExchange with null response throws NoSuchElementException`() {
7777
every { requestBodySpec.exchange(any<RequestHeadersSpec.ExchangeFunction<Foo>>(), any()) } returns null
7878
val exchangeFunction: (HttpRequest, RequestHeadersSpec.ConvertibleClientHttpResponse) -> Foo? =
79-
{ request, response -> null }
79+
{ _, _ -> null }
8080
assertThrows<NoSuchElementException> { requestBodySpec.requiredExchange(exchangeFunction) }
8181
}
8282

0 commit comments

Comments
 (0)