Skip to content

Commit 1efd9cb

Browse files
committed
Added deprecated release version for remaining methods
1 parent 901f48e commit 1efd9cb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import fj.F;
44
import fj.Function;
5+
import fj.Ord;
56
import fj.P2;
67
import fj.Unit;
78
import fj.control.Trampoline;
@@ -506,6 +507,8 @@ public static <A> Gen<A> pickOne(List<A> as) {
506507
* <p>
507508
* Note: pick is synonymous with combinationOf
508509
*
510+
* @deprecated As of release 4.6, use {@link #combinationOf}
511+
*
509512
* @param n The number of elements to pick from the given list.
510513
* @param as The list from which to pick elements.
511514
* @return A generator of lists that picks the given number of elements from the given list.
@@ -644,6 +647,8 @@ private static <A> Gen<List<A>> pick(Gen<List<Integer>> indexesGen, Array<A> as)
644647
* <p>
645648
* Note: someOf is synonymous with someCombinationOf
646649
*
650+
* @deprecated As of release 4.6, use {@link #someCombinationOf}
651+
*
647652
* @param as The list from which to pick values.
648653
* @return A generator of lists that produces some of the values of the given list.
649654
*/

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ public Rand reseed(long seed) {
9797
* result.
9898
* <p>
9999
* Calling {@link #reseed(long)} on an instance returned from this method will
100-
* result in an exception being thrown. Use {@link #rand(F, F, F)} instead.
100+
* result in an exception being thrown.
101+
*
102+
* @deprecated As of release 4.6, use {@link #rand(F, F, F)}.
101103
*
102104
* @param f The integer random generator.
103105
* @param g The floating-point random generator.

0 commit comments

Comments
 (0)