Skip to content

Commit 0ca5248

Browse files
committed
Reviewed use of P.lazy and used () -> where applicable for quickcheck
1 parent 5b8248c commit 0ca5248

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

quickcheck/src/main/java/fj/test/Shrink.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ public static <A> Shrink<A> empty() {
138138
if (i == 0L)
139139
return nil();
140140
else {
141-
final Stream<Long> is = cons(0L, P.lazy(() -> iterate(x -> x / 2L, i).takeWhile(x2 -> x2 != 0L).map(x1 -> i - x1)));
141+
final Stream<Long> is = cons(0L, () -> iterate(x -> x / 2L, i).takeWhile(x2 -> x2 != 0L).map(x1 -> i - x1));
142142

143-
return i < 0L ? cons(-i, P.lazy(() -> is)) : is;
143+
return i < 0L ? cons(-i, () -> is) : is;
144144
}
145145
});
146146

0 commit comments

Comments
 (0)