Skip to content

Commit

Permalink
fix javadoc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
henry committed Feb 2, 2018
1 parent 064d55a commit 32ebcf7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/org/quicktheories/core/Gen.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ default <B,C> Gen<C> zip(Gen<B> b, BiFunction<T,B,C> mapping) {
* Combines output of this Gen with two others using mapping
* @param <B> Type to combine with
* @param <C> Type to combine with
* @param <D> Type to generate
* @param <R> Type to generate
* @param b A Gen of B
* @param c A Gen of C
* @param mapping function to use to combine values
Expand All @@ -132,7 +132,7 @@ default <B,C, R> Gen<R> zip(Gen<B> b, Gen<C> c, Function3<T,B,C,R> mapping) {
* Combines output of this Gen with others using mapping
* @param <B> Type to combine with
* @param <C> Type to combine with
* @param <D> Type to generate
* @param <R> Type to generate
* @param b A Gen of B
* @param c A Gen of C
* @param d A Gen of D
Expand All @@ -147,7 +147,7 @@ default <B,C,D,R> Gen<R> zip(Gen<B> b, Gen<C> c, Gen<D> d, Function4<T,B,C,D,R>
* Combines output of this Gen with others using mapping
* @param <B> Type to combine with
* @param <C> Type to combine with
* @param <D> Type to generate
* @param <R> Type to generate
* @param b A Gen of B
* @param c A Gen of C
* @param d A Gen of D
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/org/quicktheories/core/Strategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 5 additions & 2 deletions core/src/main/java/org/quicktheories/generators/MapsDSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ public class MapsDSL {
/**
* Creates a ListGeneratorBuilder.
*
* @param keys Gen of keys
* @param values Gen of values
*
* @param <K>
* key type to generate
* @param <V>
* value type to generate
* @return a MapGeneratorBuilder of type K,V
*/
public <K, V> MapGeneratorBuilder<K, V> of(Gen<K> kg, Gen<V> vg) {
return new MapGeneratorBuilder<>(kg, vg);
public <K, V> MapGeneratorBuilder<K, V> of(Gen<K> keys, Gen<V> values) {
return new MapGeneratorBuilder<>(keys, values);
}

/**
Expand Down

0 comments on commit 32ebcf7

Please sign in to comment.