twitter / util

Wonderful reusable code from Twitter
https://twitter.github.io/util
Apache License 2.0
2.69k stars 581 forks source link

use Gen.delay instead of Gen.wrap #216

Closed xuwei-k closed 6 years ago

xuwei-k commented 6 years ago

Problem

org.scalacheck.Gen.wrap is deprecated since scalacheck 1.13.0. removed scalacheck 1.14.0

Solution

use Gen.delay

Result

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

yufangong commented 6 years ago

merged in https://github.com/twitter/util/commit/91b3a5e7bec60786879f8deba38ee7fc6fcd383d