Skip to content

Commit 55e3596

Browse files
committed
sadly, this is needed to reclaim compilation in java6
1 parent b0a2869 commit 55e3596

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎hamcrest-library/src/main/java/org/hamcrest/collection/IsCollectionWithSize.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.hamcrest.Factory;
44
import org.hamcrest.FeatureMatcher;
55
import org.hamcrest.Matcher;
6+
import org.hamcrest.core.IsEqual;
67

78
import java.util.Collection;
89

@@ -46,9 +47,10 @@ public static <E> Matcher<Collection<? extends E>> hasSize(Matcher<? super Integ
4647
* @param size
4748
* the expected size of an examined {@link java.util.Collection}
4849
*/
49-
@Factory
50+
@SuppressWarnings({ "rawtypes", "unchecked" })
51+
@Factory
5052
public static <E> Matcher<Collection<? extends E>> hasSize(int size) {
51-
return IsCollectionWithSize.hasSize(equalTo(size));
53+
return (Matcher)IsCollectionWithSize.hasSize(IsEqual.<Integer>equalTo(size));
5254
}
5355

5456
}

0 commit comments

Comments
 (0)