bgarrels / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

allOf() with 6 parameters misses the 5th parameter #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The parameter "fifth" is not being added to the list!

    @Factory
    public static <T> Matcher<T> allOf(Matcher<T> first, Matcher<? super T> second, Matcher<? super T> third, Matcher<? super T> fourth, Matcher<? super T> fifth, Matcher<? super T> sixth) {
        List<Matcher<? super T>> matchers = new ArrayList<Matcher<? super T>>(6);
        matchers.add(first);
        matchers.add(second);
        matchers.add(third);
        matchers.add(fourth);
        matchers.add(sixth);
        return allOf(matchers);
    }

Original issue reported on code.google.com by aparke...@gmail.com on 17 Jan 2012 at 12:25

GoogleCodeExporter commented 9 years ago
This was found on 1.2. I just noticed that it is fixed on the trunk code.

Original comment by aparke...@gmail.com on 17 Jan 2012 at 12:33

GoogleCodeExporter commented 9 years ago

Original comment by dharkn...@gmail.com on 20 Jan 2012 at 6:34