Skip to content

Commit 6b94413

Browse files
timis1n
authored andcommitted
BAEL-102744 Remove wildcard import
1 parent ca05fc2 commit 6b94413

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

kotlin-libraries/src/main/kotlin/com/baeldung/kotlin/arrow/FunctionalErrorHandlingWithEither.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.baeldung.kotlin.arrow
22

3-
import arrow.core.*
3+
import arrow.core.flatMap
4+
import arrow.core.Either
45
import kotlin.math.sqrt
56

67
class FunctionalErrorHandlingWithEither {
@@ -47,7 +48,7 @@ class FunctionalErrorHandlingWithEither {
4748
fun computeWithEitherClient(input : String) {
4849

4950
@Suppress("UNUSED_EXPRESSION")
50-
when(val computeWithEither = computeWithEither(input)){
51+
when(val computeWithEither = computeWithEither(input)) {
5152
is Either.Right -> "The greatest divisor is square number: ${computeWithEither.value}"
5253
is Either.Left -> when(computeWithEither.value){
5354
is ComputeProblem.NotANumber -> "Wrong input! Not a number!"

kotlin-libraries/src/test/kotlin/com/baeldung/kotlin/rxkotlin/RxKotlinUnitTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ class RxKotlinUnitTest {
146146

147147
@Test
148148
fun whenHelper_thenMoreIdiomaticKotlin() {
149+
@Suppress("COMPATIBILITY_WARNING")
149150
val zipWith = Observable.just(1).zipWith(Observable.just(2)) { a, b -> a + b }
150151
zipWith.subscribeBy(onNext = { println(it) })
151152
val zip = Observables.zip(Observable.just(1), Observable.just(2)) { a, b -> a + b }

0 commit comments

Comments
 (0)