diff --git a/core/src/main/java/org/quicktheories/core/Gen.java b/core/src/main/java/org/quicktheories/core/Gen.java index 7497aed..e6ca708 100644 --- a/core/src/main/java/org/quicktheories/core/Gen.java +++ b/core/src/main/java/org/quicktheories/core/Gen.java @@ -118,7 +118,7 @@ default Gen zip(Gen b, BiFunction mapping) { * Combines output of this Gen with two others using mapping * @param Type to combine with * @param Type to combine with - * @param Type to generate + * @param Type to generate * @param b A Gen of B * @param c A Gen of C * @param mapping function to use to combine values @@ -132,7 +132,7 @@ default Gen zip(Gen b, Gen c, Function3 mapping) { * Combines output of this Gen with others using mapping * @param Type to combine with * @param Type to combine with - * @param Type to generate + * @param Type to generate * @param b A Gen of B * @param c A Gen of C * @param d A Gen of D @@ -147,7 +147,7 @@ default Gen zip(Gen b, Gen c, Gen d, Function4 * Combines output of this Gen with others using mapping * @param Type to combine with * @param Type to combine with - * @param Type to generate + * @param Type to generate * @param b A Gen of B * @param c A Gen of C * @param d A Gen of D diff --git a/core/src/main/java/org/quicktheories/core/Strategy.java b/core/src/main/java/org/quicktheories/core/Strategy.java index b1c68a1..49d7516 100644 --- a/core/src/main/java/org/quicktheories/core/Strategy.java +++ b/core/src/main/java/org/quicktheories/core/Strategy.java @@ -149,8 +149,8 @@ public Strategy withShrinkCycles(int shrinks) { /** * Creates a strategy using the supplied reporter - * @param reporter - * @return + * @param reporter Reporter to use + * @return a strategy with suppled reporter */ public Strategy withReporter(Reporter reporter) { return new Strategy(prng, examples, shrinkCycles, generateAttempts, reporter, guidance); diff --git a/core/src/main/java/org/quicktheories/generators/MapsDSL.java b/core/src/main/java/org/quicktheories/generators/MapsDSL.java index e9f5eb6..1981271 100644 --- a/core/src/main/java/org/quicktheories/generators/MapsDSL.java +++ b/core/src/main/java/org/quicktheories/generators/MapsDSL.java @@ -13,14 +13,17 @@ public class MapsDSL { /** * Creates a ListGeneratorBuilder. * + * @param keys Gen of keys + * @param values Gen of values + * * @param * key type to generate * @param * value type to generate * @return a MapGeneratorBuilder of type K,V */ - public MapGeneratorBuilder of(Gen kg, Gen vg) { - return new MapGeneratorBuilder<>(kg, vg); + public MapGeneratorBuilder of(Gen keys, Gen values) { + return new MapGeneratorBuilder<>(keys, values); } /**