Skip to content

Commit 275d828

Browse files
author
nat.pryce
committed
fix for issue 18, sprinkled more magic question marks around
1 parent 855a21e commit 275d828

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

hamcrest-core/src/main/java/org/hamcrest/core/AllOf.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
* matcher returns <code>false</code>.
1414
*/
1515
public class AllOf<T> extends BaseMatcher<T> {
16-
private final Iterable<Matcher<? extends T>> matchers;
16+
private final Iterable<? extends Matcher<? extends T>> matchers;
1717

18-
public AllOf(Iterable<Matcher<? extends T>> matchers) {
18+
public AllOf(Iterable<? extends Matcher<? extends T>> matchers) {
1919
this.matchers = matchers;
2020
}
2121

@@ -44,8 +44,7 @@ public static <T> Matcher<T> allOf(Matcher<? extends T>... matchers) {
4444
* Evaluates to true only if ALL of the passed in matchers evaluate to true.
4545
*/
4646
@Factory
47-
public static <T> Matcher<T> allOf(Iterable<Matcher<? extends T>> matchers) {
47+
public static <T> Matcher<T> allOf(Iterable<? extends Matcher<? extends T>> matchers) {
4848
return new AllOf<T>(matchers);
4949
}
50-
5150
}

hamcrest-core/src/main/java/org/hamcrest/core/AnyOf.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
*/
1515
public class AnyOf<T> extends BaseMatcher<T> {
1616

17-
private final Iterable<Matcher<? extends T>> matchers;
17+
private final Iterable<? extends Matcher<? extends T>> matchers;
1818

19-
public AnyOf(Iterable<Matcher<? extends T>> matchers) {
19+
public AnyOf(Iterable<? extends Matcher<? extends T>> matchers) {
2020
this.matchers = matchers;
2121
}
2222

@@ -45,7 +45,7 @@ public static <T> Matcher<T> anyOf(Matcher<? extends T>... matchers) {
4545
* Evaluates to true if ANY of the passed in matchers evaluate to true.
4646
*/
4747
@Factory
48-
public static <T> Matcher<T> anyOf(Iterable<Matcher<? extends T>> matchers) {
48+
public static <T> Matcher<T> anyOf(Iterable<? extends Matcher<? extends T>> matchers) {
4949
return new AnyOf<T>(matchers);
5050
}
5151
}

0 commit comments

Comments
 (0)