fixture-monkey icon indicating copy to clipboard operation
fixture-monkey copied to clipboard

KotlinTypeDefaultArbitraryBuilder의 thenApply, acceptIf 파라미터 타입 경고 [v 1.1.6]

Open jurogrammer opened this issue 1 year ago • 1 comments

Describe the bug

giveMeKotlinBuilder로 빌더를 생성 했음에도 thenApply, acceptIfbuilder.set() 사용시 deprecated 경고가 발생합니다.

제 생각엔 아래처럼 변경되어야 할 것으로 보입니다. 감사합니다! as-is

  override fun thenApply(biConsumer: BiConsumer<T, ArbitraryBuilder<T>>): KotlinTypeDefaultArbitraryBuilder<T> =
        this.apply { delegate.thenApply(biConsumer) }

to-be

  override fun thenApply(biConsumer: BiConsumer<T, KotlinTypeDefaultArbitraryBuilder<T>>): KotlinTypeDefaultArbitraryBuilder<T> =
        this.apply { delegate.thenApply(biConsumer) }

Your environment

  • fixtureMonkey 1.1.6
  • kotlin 2.0.0

Steps to reproduce

스크린샷 2024-12-26 오후 5 55 08

Expected behaviour

deprecated 경고가 발생하지 않습니다.

Actual behaviour

deprecated 경고가 발생합니다.

jurogrammer avatar Dec 26 '24 09:12 jurogrammer

@jurogrammer 님 안녕하세요.

breaking change가 발생할 수 있어 다음 minor 버전에서 해결하고자 합니다.

해결되면 공유드리겠습니다. 감사합니다.

seongahjo avatar Jan 08 '25 09:01 seongahjo