peterlck / 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 10 years ago

GoogleCodeExporter commented 10 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