The various assert methods of the Eventually class that take a Matcher as a parameter use Matcher<?> as the parameter type. This means that a Matcher of any type can be used when in fact the Matcher should be restricted to Matcher<? super T> so that compile time errors occur if the Matcher is the wrong type.
The various assert methods of the Eventually class that take a Matcher as a parameter use Matcher<?> as the parameter type. This means that a Matcher of any type can be used when in fact the Matcher should be restricted to Matcher<? super T> so that compile time errors occur if the Matcher is the wrong type.