Closed xuwei-k closed 6 years ago
org.scalacheck.Gen.wrap is deprecated since scalacheck 1.13.0. removed scalacheck 1.14.0
org.scalacheck.Gen.wrap
use Gen.delay
Gen.delay
fix https://github.com/twitter/util/issues/214. There is no substantial changes because Gen.wrap call Gen.delay. https://github.com/rickynils/scalacheck/blob/1.13.4/src/main/scala/org/scalacheck/Gen.scala#L446
Gen.wrap
merged in https://github.com/twitter/util/commit/91b3a5e7bec60786879f8deba38ee7fc6fcd383d
Problem
org.scalacheck.Gen.wrap
is deprecated since scalacheck 1.13.0. removed scalacheck 1.14.0Solution
use
Gen.delay
Result
fix https://github.com/twitter/util/issues/214. There is no substantial changes because
Gen.wrap
callGen.delay
. https://github.com/rickynils/scalacheck/blob/1.13.4/src/main/scala/org/scalacheck/Gen.scala#L446