Permalink
Browse files

Merge pull request #491 from marcphilipp/fix-issue-474

Workaround for compilation problem on non-recent JDKs
  • Loading branch information...
dsaff committed Sep 4, 2012
2 parents 9dd0494 + 1827bfd commit 899527e3749661128ebbadbcefb40c49d866facf
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/junit/matchers/JUnitMatchers.java
@@ -31,7 +31,7 @@
*/
@Deprecated
public static <T> Matcher<Iterable<? super T>> hasItem(Matcher<? super T> elementMatcher) {
- return CoreMatchers.hasItem(elementMatcher);
+ return CoreMatchers.<T> hasItem(elementMatcher);
}
/**

0 comments on commit 899527e

Please sign in to comment.