Skip to content

Commit ee082dd

Browse files
timis1fabiotadashi
authored andcommitted
BAEL-102141 Changes after review
1 parent eb647b5 commit ee082dd

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

kotlin-libraries-http/src/test/kotlin/com/baeldung/fuel/FuelHttpLiveTest.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal class FuelHttpLiveTest {
2424
val latch = CountDownLatch(1)
2525

2626
"http://httpbin.org/get".httpGet().response{
27-
_, response, result ->
27+
_, response, result ->
2828

2929
val (data, error) = result
3030

@@ -71,7 +71,7 @@ internal class FuelHttpLiveTest {
7171
val latch = CountDownLatch(1)
7272

7373
Fuel.post("http://httpbin.org/post").response{
74-
_, response, result ->
74+
_, response, result ->
7575

7676
val (data, error) = result
7777

@@ -151,8 +151,7 @@ internal class FuelHttpLiveTest {
151151

152152
Fuel.download("http://httpbin.org/bytes/32768").fileDestination { _, _ ->
153153
File.createTempFile("temp", ".tmp")
154-
}.response{
155-
_, response, result ->
154+
}.response{ _, response, result ->
156155

157156
val (data, error) = result
158157
Assertions.assertNull(error)
@@ -254,7 +253,7 @@ internal class FuelHttpLiveTest {
254253

255254
Fuel.request(PostRoutingAPI.Post("1",null))
256255
.responseObject(Post.Deserializer()) {
257-
_, _, result ->
256+
_, _, result ->
258257
Assertions.assertEquals(1, result.component1()?.get(0)?.userId)
259258
latch.countDown()
260259
}

spring-boot-kotlin/src/main/kotlin/com/baeldung/nonblockingcoroutines/handlers/ProductsHandler.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ package com.baeldung.nonblockingcoroutines.handlers
33
import com.baeldung.nonblockingcoroutines.controller.ProductStockView
44
import com.baeldung.nonblockingcoroutines.model.Product
55
import com.baeldung.nonblockingcoroutines.repository.ProductRepositoryCoroutines
6-
import kotlinx.coroutines.*
6+
import kotlinx.coroutines.DelicateCoroutinesApi
7+
import kotlinx.coroutines.FlowPreview
8+
import kotlinx.coroutines.GlobalScope
9+
import kotlinx.coroutines.async
10+
import kotlinx.coroutines.Deferred
711
import org.springframework.beans.factory.annotation.Autowired
812
import org.springframework.http.MediaType
913
import org.springframework.stereotype.Component

0 commit comments

Comments
 (0)